resources.ap_ does not exist when compile my android project

前端 未结 28 2748
慢半拍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:48

    If you use SurfaceView and have recently changed the name of the package, you might want to check any XML tags that refer to the class.

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

    i tried the Notepad Tutorial Exercise 2 and got the same error. i used the wrong API-Level (3). i just switched to level 8 and now it's working fine.

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

    I got this problem after the upgrade to Android SDK Tools 15. It was also related to the PNG image as some other replies indicate. After analyzing the Eclipse Console output I found out that the process aapt.exe is crashing while processing of one of the images. More precisely it was in the step labeled as "Including resources from package". To identify the file causing the problem I scanned the Console output, found 3 calls of aapt.exe and each of them I re-ran in the Windows Console. The third one ("aapt.exe package -v -S ...") crashed on one of my PNG files. After I replaced this file (in all supported resolutions) the problem has gone.

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

    For Android studio, if you are using gradle 2.2.2 just disable shrinkResources into build.gradle file:

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