android can't find class from external jar

后端 未结 2 1210
耶瑟儿~
耶瑟儿~ 2020-12-06 16:58

I am trying to create a simple test app that basically extends the Android Hello World tutorial app by invoking some simple functionality from an external JAR. However, when

相关标签:
2条回答
  • 2020-12-06 17:29

    i. Generate Jar for your external Classes

    ii. Copy to Libs folder of your Android Project

    iii. Open Eclipse->Right Click on Jar->Add To Build Path.

    iv. Clean Project and Run Application.

    0 讨论(0)
  • 2020-12-06 17:36

    There's no need to build the external jar. Try removing it from your build path and follow these steps:

    1. Create a folder in the root of your Android project called libs.
    2. Add the jar to that folder.
    3. Right-click the jar and click to add to build path.
    4. Clean your project and try it again.
    0 讨论(0)
提交回复
热议问题