“Could not find the XXX.apk” message in console while starting application with an Android lib linked

前端 未结 5 1788
情深已故
情深已故 2020-12-06 00:01

There\'s some weird problem with my workspace setup in Eclipse. I have one Android Library project and an application project which is linked to the library.

Everyt

相关标签:
5条回答
  • 2020-12-06 00:12

    I removed the library reference from project properties-->Android (which was ticked IsLibrary) then immediately added it again (and is no longer ticked IsLibrary) and build and it worked for me.

    0 讨论(0)
  • 2020-12-06 00:22

    You have checked your project as library so by this reason it work as library and when you are going to run at that time it show this type of error. So, for solve this u have to first deselect that check box by going throw below path.

    1. Right click on project
    2. Select properties.
    3. Select android.
    4. And now uncheck "is library".
    5. Then apply.

    Now that error will not show while you run your project.

    0 讨论(0)
  • 2020-12-06 00:29

    Go to project properties ----> Android (Un check the ticked IsLibrary) ---> click "ok". Then run the application its working for me.

    0 讨论(0)
  • 2020-12-06 00:32

    In this message from the Android developers group Lance Nanek is quoted as pointing out that having a "project dependency" in the Java Build Path section of an Android project causes this problem, if the depended project is an Android project.

    So, go to Java Build Path > Projects and remove the incorrect project dependency (your Android library project.) Note that in the "Android" section of the project settings the Android library that you're dependent on must be listed in the ~"Libraries" box.

    0 讨论(0)
  • 2020-12-06 00:32

    Go to project properties > Android . Here make sure the Project build target is selected/checked.

    0 讨论(0)
提交回复
热议问题