Android App Compile Not Generating Package Resources

前端 未结 22 2048
借酒劲吻你
借酒劲吻你 2020-12-16 09:02

When attempting to compile my Xamarin.Android app I get the compile error:

Error 3 The file \"obj\\Debug\\android\\bin\\packaged_resources\" does no

相关标签:
22条回答
  • 2020-12-16 09:53

    In my case the error was caused because I set the version number in the manifest to 1.0. Apparently the version number must be an integer.

    0 讨论(0)
  • 2020-12-16 09:54

    I just lost 7 hours of my day.. You know what I did?

    Project.Droid -> Resources -> RightClick on the Resource.Designer.cs -> Delete

    I did fu****n' works ! ><

    EDIT

    Omg it did comes back... Why does Windows has all time so much of bugs... seriously..

    0 讨论(0)
  • 2020-12-16 09:54

    had the same issue. This was because i had an .png file that had a "-" character in it's name. Just enusure any of your resources don't have the "-" hyphen character

    0 讨论(0)
  • 2020-12-16 09:56

    Had the same problem. My error was in the manifest: I had Version Code (Version number) set at "1.0.0" and it wasn't allowed. It only takes integers so I had to revert to "1".

    I mixed up Version Code and Version Name.

    0 讨论(0)
  • 2020-12-16 09:57

    Not sure if this is a late answer, but this specific error message occurs for one of the two reasons:

    1. (Most probably the case): In your layout file, you may have mentioned a resource (drawable/image) incorrectly. For example, the image was in the mipmap folder path but you have pointed it wrongly to the drawable folder path.

    2. Per many comments, there could be a hyphen or special character in one your resources' names or it starts with a number. However, please note, in this specific case, you will mostly see a aapt.exe has stopped or appt.exe has exited with error code 1 error. I am not sure if you will get obj\Debug\android\bin\packaged_resources not found error. My experience says that point 1 above is the case.

    0 讨论(0)
  • 2020-12-16 09:58

    Basically the problem is with special character of Resource FILE NAME. In my case, I am keep getting error "The file "obj\Debug\android\bin\packaged_resources" does not exist.":

    ..\Resources\drawable\company-app-log.png having -(hyphen) between alpha characters is the root-cause of the issue.

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