android can't find class from external jar

后端 未结 2 1215
耶瑟儿~
耶瑟儿~ 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: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.

提交回复
热议问题