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:59

    Got this error in Visual Studio 2017 Xamarin android project on Windows. After lot of experiments with resource's files I found, that filename length and extension of image file in the drawable folder affect the result of compillation!

    drawable/abcde.png - compilled ok
    drawable/abcdef.png - error, "obj\Debug\android\bin\packaged_resources" does not exist

    If rename image to file without .png extension, compilled without errors.

    Spended a lot of time and was confused :-/

    0 讨论(0)
  • 2020-12-16 10:02

    You will need to grub down by switching on Verbose output. What is stopping the generation of packaged_resources?

    In VS2013 choose Tools --> Options --> Build and execute, choose verbosity Diagnostic.

    In VS2015, the same option is in Tools --> Options --> Projects and Solutions --> Build and Run.

    In my case, it was a hyphen character in the name of the action property of an Intent filter, but choosing verbose output will point you to the line that has the problem.

    0 讨论(0)
  • 2020-12-16 10:02

    I had the same problem. To solve I had to remove all nuget packages from droid project, and reinstalled xamarin.forms again (has to be same version used in other projects).

    0 讨论(0)
  • 2020-12-16 10:04

    make sure that your resources don't have any special character or start with number

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