Android App Compile Not Generating Package Resources

sazr picture sazr · Aug 30, 2015 · Viewed 22k times · Source

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

Error 3 The file "obj\Debug\android\bin\packaged_resources" does not exist. MyApp.UI.Droid

This error occurred after I made some changes (added some new classes - cannot remember what it was). But I didn't change any project settings, nor go delete actual files in the obj folder.

What is the cause of this error and how can I fix this?

Some information that may be useful:

  • The project is a Cross-Platform PCL project - Core, Android, and iOS Projects
  • The project uses MVVM Cross

Answer

Chad Bonthuys picture Chad Bonthuys · Sep 15, 2015

I encountered the same issue. Ensure that your resource files do not include any special characters

The actual error you may be encountering is:

Invalid file name: must contain only [a-z0-9_.]

Change your build output verbosity in visual studio to see better log output.