조회 수 7421 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

To sum it up, when adding an external jar file in Android Studio:

  1. Copy jar to root/project/libs folder;
  2. Right-click and add as library;
  3. Add the jar to root/project/build.gradle (something like compile files('libs/test-jar-to-import.jar'));
  4. Make sure the imported jar complies with Java 6 (7 will not do, for now).
 
# 출처: http://stackoverflow.com/questions/17751462/importing-external-jar-file-in-android-studio-noclassdeffounderror
 
 

안드로이드 스튜디오 프로젝트에 간단하게 라이브러리를 추가하는 방법입니다.

 

1. 프로젝트 브라우저를 Project 타입으로 변경합니다.

   (Project 타입으로 변경해야 libs폴더가 보입니다.)

 

2. libs폴더에 추가하고자 하는 jar 파일을 복사해서 넣습니다.

 

3. jar파일의 이름 등을 변경하는 화면이 표시됩니다.

 

4. libs폴더에 추가한 jar파일을 선택 후 마우스 오른쪽 클릭하여 팝업 메뉴를 표시하고, Add As Library 메뉴를 클릭합니다.

 

5. 아래의 화면에서 OK 버튼을 클릭하면 라이브러리가 추가됩니다.

 

6. 추가된 라이브러리를 확인 하려면, 프로젝트를 선택 후 오른쪽 마우스를 클릭하여 팝업 메뉴에서 Open Module Settings를 클릭합니다.

 

7. Project Structure 화면에서 Module을 선택하고, Dependencies 탭을 클릭하면 추가된 라이브러리를 확인 할 수 있습니다.

 

 

#출처: http://docko.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-%EC%8A%A4%ED%8A%9C%EB%94%94%EC%98%A4-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%ACjar-%ED%8C%8C%EC%9D%BC-%EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0

?

  1. Image Upload

    http://imgur.com https://snag.gy/ https://postimages.org/ko/ http://imgur.top/ Clipboard 이미지의 업로드 https://blog.joostory.net/460
    Date2019.07.05 CategoryWeb Design Views44098
    Read More
  2. TensorFlow

    ‘함께하는 딥러닝 컨퍼런스’ 발표 자료입니다. Enjoy! slide: http://bit.ly/keras-in-tf2 script: http://bit.ly/keras-in-tf2-script #Reference https://tensorflow.blog/
    Date2019.07.05 CategoryDeep Learning Views1165
    Read More
  3. Get PyCharm Student Free License (파이참 무료 라이센스 받기)

    Requirement (필요사항) - university domain email adress (학교 도메인으로 된 이메일 주소) such as OOO@OOO.ac.kr / OOO@OOO.edu 1. go to https://www.jetbrains.com/shop/eform/students 2. fill the blank and click the button, "apply for free products" 3. co...
    Date2019.06.19 CategoryPyThon Views99627
    Read More
  4. How to add an external jar file in Android Studio

    To sum it up, when adding an external jar file in Android Studio: Copy jar to root/project/libs folder; Right-click and add as library; Add the jar to root/project/build.gradle (something like compile files('libs/test-jar-to-import.jar')); Mak...
    Date2015.08.06 CategoryCoding Views7421
    Read More
  5. No Image

    extends, interface, implements 의 정의

    A class implements an interface. An interface is an abstract class that only contains method signatures and constant declarations. An interface doesn't contain method definitions and can't be instantiated. A class extends another class. The new class ...
    Date2015.08.05 CategoryEngineering Views14264
    Read More
  6. No Image

    Android 단축키 팁 (생산성 최적화)

    import 정리: ctrl+alt+O 자동 완성/수정 import (show intention actions and quick-fixes): alt+Enter 이름 바꾸기 (Refactoring): shift+F6 자동완성 ctrl+ space 양식 정렬: ctrl+alt+L 메소드 오버라이드 (Override method): ctrl+o 인터페이스 구현 (Implement met...
    Date2015.08.05 CategoryEngineering Views5302
    Read More
  7. No Image

    Better Quality Images from Figures

    If you want better quality images from your figures, I would suggest downloading the submission Myaa by Anders Brun on The MathWorks File Exchange. It allows you to create anti-aliased graphics in MATLAB. Here's a screenshot from the submission illust...
    Date2015.02.03 CategoryEngineering Views5773
    Read More
  8. No Image

    "getframe" not working on 64-bit Windows properly

    Try this, but don't use a docked figure. Just use GETFRAME the normal way, but switch to software rendering of OPENGL. You should still be able to use transparency. opengl('software') #Source: http://www.mathworks.com/matlabcentral/answers/9000-cannot...
    Date2015.02.03 CategoryEngineering Views7489
    Read More
  9. No Image

    msg_make_directory_failed

    # Issuewhen you try to easy install on XE, it doesn't work with popup "msg_make_directory_failed" # Solution1. Go to Admin -> Settings -> FTP Account Information 2. Type the XE Path from the the directory you confront first when you access your FTP a...
    Date2011.09.22 CategoryEngineering Views15624
    Read More
  10. No Image

    2진수 <-> 8 진수, 16 진수 변환

    앞서 10 진수를 기준으로 2,8,16 진수의 변환을 알아 보았습니다. 이번에는 2진수를 8진수와 16진수로 변환하는 방법과 8진수,16진수를 2진수로 변환하는 방법을 알아 봅니다. 1. 2진수를 16진수로 변환하기. 2진수로 데이터가 저장되는 정보의 최소 단위인 비트가 4개 ...
    Date2011.09.17 CategoryReferences Views99504
    Read More
  11. No Image

    Align <Div> at center

    .body { text-align: center; } .body .container {margin: 0 auto; } <div class="body"> <div class="container">{contents}</div> </div> div 가운데 정렬하기 body안에 container를 가운데에 정렬함
    Date2011.08.12 CategoryEngineering Views19452
    Read More
  12. No Image

    [On2 Salsa - Beginner] Outside Turn, Close Cross Body Lead, Inside Turn

    Instructor : 태수&무아 (SkyLatin) Instruction : Holding - Outside Turn - Close Cross Body Lead (C-CBL) - Close Inside Turn
    Date2011.08.11 CategorySalsa Views23074
    Read More
Board Pagination Prev 1 2 3 Next
/ 3