resources.ap_ does not exist when compile my android project

前端 未结 28 2750
慢半拍i
慢半拍i 2020-12-13 06:01

Compile Error: Error generating final archive: java.io.FileNotFoundException: ..\\bin\\resources.ap_ does not exist.

Compile other simple sample works. Same source f

相关标签:
28条回答
  • 2020-12-13 06:27

    1 - Try Project > Clean and rebuild project

    2 - If clean does not solve this issue, check ALL log in your Console view in Eclipse.

    The issue may not be reported at the end of the Console view. In my case, it was a drawable that does not respect the 9-patch format. This was reported somewhere in the Console view but not at the end !!!

    0 讨论(0)
  • 2020-12-13 06:31

    In my case was a 9 patch drawable that was modified with GIMP, then adb cannot "parse" it, recreated with the draw9patch then worked fine

    0 讨论(0)
  • 2020-12-13 06:31

    I was getting both the error in this thread and the one in this post: Android Unknown Command 'crunch'.

    Updating the Android SDK inside Eclipse fixed both errors for me.

    0 讨论(0)
  • 2020-12-13 06:31

    Here are a few of the things I did that made this finally work for me.

    1) I was using Admob ads, and I didn't have an attrs.xml file in my res/values folder

    2) I deleted a line that says "import andriod.R" from my main activity, and all my resources connected again and this ultimately made the error go away.

    3) The last thing I had wrong is I had a "lib" folder instead of a "libs" folder that held my Admob jar file.

    Lastly, I cleaned the project after these changes.

    So, hopefully this helps someone else having this same error if none of the above fix the problem.

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

    This problem occurred for me after eclipse did some updates. I just went to a backup of my project and took the file that and placed it in the appropriate place in my current project and all worked.

    0 讨论(0)
  • 2020-12-13 06:33

    I got this along with an error when the "aapt.exe" update tool was run.

    There's apparently a bug in this program when the console build output is set to "Verbose". Changing it to "Normal" fixed it for me.

    See this link:

    aapt.exe is throwing unhandled exception while building *.apk file for Android project in Eclipse

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