The file "obj\Debug\android\bin\packaged_resources" does not exist.

13»

Answers

  • cwphillicwphilli Colin Phillips USMember ✭✭✭
    edited May 5

    @cwphilli said:
    I ran into this problem.
    Using a hex value for a layout text color and forgetting the # in the string produced the error.

    @Manikandan_S said:
    This is due to many reasons. - (Not sure why xamarin still showing this error in case of XML error!!!!)
    Please check the XML file completely.
    In My case, it was mistakenly set for
    android:layout_weight="wrap_content"

    I ran into this again last night, android:margin instead of android:layout_margin was the culprit.

  • MuhammadAliYousafMuhammadAliYousaf Muhammad Ali Yousaf USMember
    edited May 8

    I spent a lot of time to identify that issue. Finally I become able to resolve it by running the following options

    Project -> Run Code Analysis On On Solution

    After that, I found that an extra resource has been automatically added in the Resource.Designer.cs file, I simply remove that line and everything works like a magic. :)

    Xamarin should improve IDE to identify that issue during compile time, instead of giving that error while deploying the build on the device/emulator.

  • Tarek.AhmedTarek.Ahmed Tarek Ahmed USMember

    Check the output window and you will view the xml file that's generating the error.

  • VijayPawar.0297VijayPawar.0297 Vijay Pawar USMember ✭✭

    I again ran into this problem but finally I realized from these discussion that there is small typo bug. Mine error was

    p1:checkablebehavior="single"

    only I changed "b" to "B" what a bug.

    p1:checkableBehavior="single"

    no its running good.

  • gBreckgBreck Giancarlo Breck NIMember

    @Tarek.Ahmed said:
    Check the output window and you will view the xml file that's generating the error.

    This work for me.

    "Check the output"

  • BoguslawBlonskiBoguslawBlonski Boguslaw Blonski PLMember ✭✭

    @wojt said:
    Hi,
    Create folder 'packaged_resources' in [project folder or startup project]\obj\Debug\android\bin\ packaged_resources :) Works for me.

  • mubimubi Muabasher Ikram USMember ✭✭✭

    Due to a jPG file i was facing this issue.

  • SabdullahSabdullah Sharique Abdullah USMember ✭✭

    The error shows for me when my styles.xaml colors.xml or some other XML files had issues. It couldn't fully generate the build and thus was failing. Looking at the the Output window for errors may help.

    Thanks

  • BoguslawBlonskiBoguslawBlonski Boguslaw Blonski PLMember ✭✭

    I think it happens when dragging file to Vs from explorer , including hiden files seems to work.

  • AmeySawantAmeySawant Amey Sawant USMember ✭✭

    Hi, Check to see if there are any unused entries in resources.designer.cs if there are any manually remove those entries.
    This will fix the issue.

  • JonDouglasJonDouglas Jon Douglas USXamarin Team, University, Developer Group Leader Xamurai

    @AmeySawant

    You never want to modify this file directly. It is generated by tooling and manual modification can mess up your project.

  • ChoMinChoMin Cho Min USMember

    I have tried above.
    But it is not working well.

  • BalaRajuBalaRaju Venkata Swamy Balaraju INMember ✭✭✭
  • 15mgm1515mgm15 Mario Galvan USMember ✭✭✭

    In my case was an asset name with "-", hope this helps to someone.

  • oliveiravitor3oliveiravitor3 Vitor G. Oliveira BRMember ✭✭

    check if you have some file with "-" like "icon-test.png"

  • oliveiravitor3oliveiravitor3 Vitor G. Oliveira BRMember ✭✭

    @MichaelShelestov thanks for your help.

    I renamed the file "icone-test.png" to "icone_test.png"

  • manuelgalindogmanuelgalindog Manuel Galindo MXMember

    If someone still getting this error, i did everything you guys said in the post and nothing works.
    Clean and rebuild always work but compile to device (or simulator) just doesn't work.

    I solved this error running the same project on VS2015 (I usually work in XS), and the error list show an error diferente that Xamarin Studio, "Error processing PNG file". I just remembered that the newest image that i added to the project was firstly a JPEG, and i converted to PNG with the mac previewer tool and added to the project (Droid>Resources>Drawable for Android and iOS>Resources for iOS) i hadn't errors on iOS but Android was so annoying. I just deleted this file and compile to device like a charm, then i just convert the jpeg image to PNG with photoshop and everything works.

    Hope this helps.

  • AmodAmatyaAmodAmatya Amod Amatya USMember

    I had an image in drawable named "Time Record".
    I renamed it as "TimeRecord" removing the space and the problem was solved.

  • AndreiLImaAndreiLIma Andrei LIma USMember

    In my case, I was have a resource with an "-" in its name. removing this symbol solves the issue for me.

  • DanielEstebanTabordaDanielEstebanTaborda Daniel Esteban Taborda COMember ✭✭

    @AmodAmatya said:
    I had an image in drawable named "Time Record".
    I renamed it as "TimeRecord" removing the space and the problem was solved.

    That worked for me , thanks.

  • RochaPiresRochaPires Pedro Pires PTMember

    What worked for me was removing android:name="Some Name" from manifest.

    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="SomeName.SomeName" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" /> <application android:name="Some Name" android:label="SomeName" android:icon="@drawable/Icon" android:theme="@style/Theme.AppCompat"> </application> </manifest>

  • OisFoleyOisFoley Ois Foley IEMember

    I had this error, and the solution was that I had added a "drawable-xhdpi" folder, and within it I had a PNG file named "delete-xhdpi.png". Removing the suffix fixed the problem(renamed to just "delete.png")

  • RaviAnandRaviAnand Ravi Anand INMember

    I had the same problem. After removing the dash "-" sign from the image file name, the problem is solved. Bad error message! It should not be:

    The file "obj\Debug\android\bin\packaged_resources" does not exist.

    Writing an error message like this causing the Developer to think about something else while the problem is the illegal file name.

  • mostafa90mostafa90 mostafa90 USMember ✭✭
    edited August 6

    Faced same scenario and realized the following: i realized i was adding a call for some name spaces in the XAML for a removed library.

  • MuhammadhamzaMuhammadhamza Muhammad hamza USMember

    i found this error when i add images in the resource folder of Resources/ Drawable / img.jpg img.png etc...
    just remove it.....
    hope so it will work

  • sameerpurohitsameerpurohit sameer purohit USMember ✭✭

    Unable to find the preview tools in sdk manager in my Android SDK manager.
    I am using visual studio 2015.
    Please help @TrucNgyen @lukasrein97

13»
Sign In or Register to comment.