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

2

Answers

  • SrikanthbollojulaSrikanthbollojula Srikanth bollojula USMember

    I have added JPG file to the drawable folder and caused this issue.. Removed it has resolved the issue..

  • ShaneNeuvilleShaneNeuville Shane Neuville USUniversity ✭✭

    It looks like this is fixed in "24.0.1"

  • AlexandreTEIXEIRA.7101AlexandreTEIXEIRA.7101 Alexandre TEIXEIRA FRMember

    Hello Guys,

    I deleted the rev 24 but i still have the issue when i try to build in release mode...

  • WendelFabianChinsamyWendelFabianChinsamy Wendel Fabian Chinsamy USMember ✭✭

    @vsg24 Sweet! This solved my issue.

  • wesleyfavarinwesleyfavarin wesley favarin USMember ✭✭

    @qusayhamad said:

    @TrucNguyen said:
    I just resolved this issue. it works for me

    Thanks, that solved my problem!

    Tanks, resolve to me!!! i'm one week with this error. tks :DDD

  • JodiBennettJodiBennett Jodi Bennett AUUniversity

    I had the same issue. Mine was causing by underscore ("_") in some icon names. Renamed the icons and all good.
    Dave

  • Okosodo_VictorOkosodo_Victor Okosodo USMember

    I resolved it by removing portable library that contains the business logic from the android and then rebuild it separately. After rebuilding, clean your android project and add reference again to your portable class library. Finally build the android project.

  • KONGSUQUNKONGSUQUN KONG SUQUN USMember

    OK guys! thanks!@angelocarlotto,I solved my problem by your way!

  • MichaelShelestovMichaelShelestov Michael Shelestov USMember ✭✭
    edited October 2016

    @JodiBennett - I found same solution too, finally. I found two closest revisions of source codes, where older copy does not have error, but newer one does. The problem was in name of added image, containing '-'. I have changed it to '_' - and all ok. Hours has been spent !#^"%;!"№; !

  • DirkPrterDirkPrter Dirk Prüter USMember

    I got that error after importing a config.target file with following settings, switching generated files to be created on a RAM disc:

    E:\$(SolutionName)\$(ProjectName)\bin\$(Configuration)\
    E:\$(SolutionName)\$(ProjectName)\obj\$(Configuration)\
    $(BaseIntermediateOutputPath)\

    After removing the import everything works fine as before.
    For me it looks like hard coded directories in a build script.

  • ViniciusSchneiderViniciusSchneider Vinicius Schneider USMember ✭✭

    Srikanthbollojula probably your file has "-" or another special character not allowed.

    Thank you @MichaelShelestov , I installed a file wich the O.S. renamed and I did not see it, now is resolved.

    Is dificult to discover it because the error not occours when you add the wrong file, just when you clean the project and try to build. I rarely clean the project, I did it only because my icons was not updating, just because the new wrong file...

  • prashantShendageprashantShendage prashant Shendage USMember

    I just removed the '-' (special character) from all the resources names. and It worked like charm :)

  • stesvisstesvis Cristian Merli USMember ✭✭

    Thank you!!

  • CharlieYenCharlieYen Charlie Yen USMember

    Had the same errors after editing the AndroidManifest.xml adding
    <activity android:windowSoftInputMode="stateHidden"></activity>
    Removing this line gets rid of the errors

    Errors:
    The file "obj\Debug\android\bin\packaged_resources" does not exist
    "aapt.exe" exited with code 1

    VS2015 Update3
    Xamarin 4.2.1.58
    Xamarin Android 7.0.2.37

    Please fix!

    vs.png 40.3K
  • NadeemKhouryNadeemKhoury Nadeem Khoury USMember

    @ArthurMoreira Thank you so much, My problem was that my intent filters has spaces. Thanks bro

  • Henkdeboer.2973Henkdeboer.2973 Henk de boer USMember

    @vsg24 said:
    You probably have an invalid character in you manifest file or one of your resources has an invalid character in its name. File names can't contain '-'

    The full error message is included in the text file you provided, you need to review it. also take a look at this topic as there maybe an error in the generated manifest file.

    Got the same problem, got a '-' in one of my image files in the Resource folder, removed it and it was fixed.

  • IvanRIvanR Ivan Radivojevic RSMember

    The problem here may be various things. So you should always try first with setting output verbosity to diagnostic (Tools -> Options -> Projects and solutions -> Build and run) and inspecting the output. It will tell you if you're having resource with '-' or missing some resource or anything else.

  • DigeeshSasidharanAchariDigeeshSasidharanAchari Digeesh Sasidharan Achari USMember

    Thanks Vahid Amiri Motlagh[vsg24]

    I was able to resolved by issue by renaming the file.
    The issue was as you pointed out:
    "You probably have an invalid character in you manifest file or one of your resources has an invalid character in its name. File names can't contain '-'"

    The full error message is included in the text file you provided, you need to review it. also take a look at this topic as there maybe an error in the generated manifest file.

  • QuakeulfQuakeulf Øyvind Sørøy NOMember ✭✭✭

    I fixed this error by getting someone on my team to send me the file from his project.

  • gustaveracostagustaveracosta Gustavo Costa GBMember ✭✭
    edited April 10

    @Quakeulf said:
    I fixed this error by getting someone on my team to send me the file from his project.

    it worked mate, thanks!!!

    Actually, if I clean the problem comes back. So it didn't really fixed my problem.

  • beguedebeguede André Luiz Magalhaes BRMember

    I still have the problem, tried several solutions proposed in the article but none solved for me.

    Can anybody help me?

    Thanks.

  • gustaveracostagustaveracosta Gustavo Costa GBMember ✭✭

    Friday and Monday lost

  • beguedebeguede André Luiz Magalhaes BRMember

    I was able to solve this problem in specific.

    It was a problem in AXML.
    In my case it was an 'android: layout_alignLeft = "true"' within a LinearLayout.

    Leave verbosity enabled, including no Xamarin Diagnostics (Tools> Options> Xamarin> Android Settings).

    In Output find Error description:

  • gustaveracostagustaveracosta Gustavo Costa GBMember ✭✭
    edited April 10

    @beguede said:
    I was able to solve this problem in specific.

    It was a problem in AXML.
    In my case it was an 'android: layout_alignLeft = "true"' within a LinearLayout.

    Leave verbosity enabled, including no Xamarin Diagnostics (Tools> Options> Xamarin> Android Settings).

    In Output find Error description:

    thanks matie, you helped solve mine

    I had this on a .xml file

    "item name="indeterminateTintMode" src_atop item"
    "item name="indeterminateTint" @color/white item"

    I did like you suggested to find the bug
    removed that and it worked!!! thanks!

  • PAOLOSANTINONPAOLOSANTINON PAOLO SANTINON ITMember

    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.

  • avinashshirphuleavinashshirphule avinash shirphule USMember

    i solved this . just select proper android compiled vesion


    oper android compiled vesion

  • SandeepMogaveerSandeepMogaveer Sandeep Mogaveer USMember

    @angelocarlotto thanx brother. Worked for me. Didn't need any re-install. Thanks a lot

  • RahulGandhi.5723RahulGandhi.5723 Rahul Gandhi USMember

    ..

  • FarzadJalaliFarzadJalali Farzad Jalali USMember

    @MichaelShelestov said:
    One more suggestion for developers, who did not find solution above (I too).
    When I got 'The file "obj\Debug\android\bin\packaged_resources" does not exist' I tried to rollback source code to old one (so old as it was possible) and found, that there is no error mentioned. So the problem probably was not with Android SDK. I started to check newer versions of code (binary search :) ) and finally found two closest revisions of source codes, where older copy does not have error, but newer one does. The problem was in NAME OF ADDED IMAGE in '...Droid\Resources\drawable\' - it contained '-' (minus) in name, 'btn-refresh.png'. I have renamed it to 'btn_refresh.png' - and all ok. Many hours spent !#^"%;!"№; !

    Thanks a lot! You are my hero today !

  • kuendigkuendig Unknown Unknown CHMember
    edited April 24

    @IvanR said:
    The problem here may be various things. So you should always try first with setting output verbosity to diagnostic (Tools -> Options -> Projects and solutions -> Build and run) and inspecting the output. It will tell you if you're having resource with '-' or missing some resource or anything else.

    very good point thx very much! in my case it was because of:

    1> obj\Debug\android\manifest\AndroidManifest.xml(14): error APT0000: No resource found that matches the given name (at 'label' with value '@string/app_name'). (TaskId:234)
    1> obj\Debug\android\manifest\AndroidManifest.xml(14): error APT0000: No resource found that matches the given name (at 'theme' with value '@style/MyTheme'). (TaskId:234)

  • cwphillicwphilli Colin Phillips USMember ✭✭✭

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

  • abdullahtahan.7433abdullahtahan.7433 abdullah tahan SAMember ✭✭

    in AndroidManifest.xml make sure that no names depending on other resources which no longer exist for Ex:
    android:label="@string/app_name" so we have to go to our resources/string.xml


    1833294650235727

  • MartHughMartHugh Mart Rogers USMember ✭✭

    This for me was caused by inadvertently adding the line :

    android:layout_height="0"

    instead of

    android:layout_height="0dp"

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

    I have filed an issue on this a couple weeks ago. Please look into the description for details:

    https://bugzilla.xamarin.com/show_bug.cgi?id=55232

    It seems like this is potentially fixed in a current Alpha version.

  • Jerry.GumpJerry.Gump Jerry.Gump USMember

    My reason is the Version Code, it must be a number like "1", but I set it "1.0".
    It's worked for me.

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

    @TrucNguyen said:
    I just resolved this issue. it works for me

    @TrucNguyen said:
    I just resolved this issue. it works for me

    Thank you.

  • hvaughanhvaughan hines vaughan USMember ✭✭✭

    My issue ended up being what I entered into either (not sure which one) android:versionCode="1.0" or android:versionName="1.0" within the Android project's AndroidManifest.xml file. Changing both values to just 1 and rebuilding fixed the issue.

  • RefTheGreatRefTheGreat Ref Chowdhury USMember ✭✭

    I was able to solve this issue by using SDK Manager and making sure I have the correct versions. In my case, I chose all the latest. My SDK Tools and SDK Platform-Tools were using V25. However, my build tools were using V23. I've upgraded Build tools to 25 and it worked successfully.

  • Manikandan_SManikandan_S Manikandan USMember ✭✭

    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"

2
Sign In or Register to comment.