resources.ap_ does not exist when compile my android project

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

提交回复
热议问题