Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin - Cannot rename 'Drawable'.No more internal file identifiers available

Well my experience with Xamarin has not started well.

I've started a course on Pluralsight, Cross Platform iOS/Android with Visual Studio and C# - Part 1, and one of the recommendations is to rename the Resources subfolders to their lowercase equivalent e.g. Drawable > drawable

However, whenever I try to do this, I receive the following error: "Cannot rename 'Drawable'.No more internal file identifiers available"

When I also view the Main.axml I receive "Disconnected from layout renderer - Please close and open the file again" but I think that may be related to the above.

EDIT: The "Disconnected from layout renderer" issue was not part of the renaming issue. However, there does appear to be an issue with the 22.6 android SDK. Please see here

Since I only downloaded Xamarin yesterday, I am running the latest version through Visual Studio 2013.

Any suggestions?

like image 696
Ricardo Deano Avatar asked Mar 07 '14 11:03

Ricardo Deano


People also ask

Do image files in resources drawable appear in xamrin forms?

image files in Resources drawable do not appear in Xamrin.Forms Android - Microsoft Q&A Q&A Global navigation Docs Documentation Learn Q&A Code Samples Q&A Questions Tags Users Feedback Site feedback Ask a question Home Anonymous Sign in to post Post Explore Tags Questions Site feedback Articles Users Skip to main content

Is it possible to rename the drawable folder?

Rename from "Drawable" to "draw" and then renamed to "drawable". Apparently there's an issue renaming a folder with just a case change. Show activity on this post. Really there is no reason to renamed the Drawable folder, unless you think the folder name looks prettier in lower case.

Is there a plugin that is still referencing Xamarin Android support?

However, it appears to be one of the plugins (Xam.Plugins.Notifier) that is still referencing Xamarin.Android.Support.v4. I have opened an issue for that project here: Sorry, something went wrong. We started to receive this error today after we upgraded to the latest Xamarin.Forms.

How to resolve NuGet errors in Xamarin?

To resolve these errors, update the project to use version 27 or higher of the Xamarin.Android.Support libraries. Sorry, something went wrong. Following up on my previous post, the other Nuget that we didn't realize was pulling in Android.Support dependencies was the ZXing library.


2 Answers

Take a look at this link

Rename from "Drawable" to "draw" and then renamed to "drawable". Apparently there's an issue renaming a folder with just a case change.

like image 132
Milton Avatar answered Sep 18 '22 17:09

Milton


Really there is no reason to renamed the Drawable folder, unless you think the folder name looks prettier in lower case. I tried renaming mine to ❤Drawable❤, but it didn't work either. Your error message seems like a Visual Studio error, so maybe try changing the folder name in the csproj file manually if you really want to do it.

They just put out an update to Xamarin.Android that fixes the issue with the designer for me (but I could only try it on a Mac because I'm not in the office right now): Xamarin.Android 4.12.1

Google released a new SDK recently that broke the designer apparently, and so just some bad luck on that one.

like image 35
jonathanpeppers Avatar answered Sep 16 '22 17:09

jonathanpeppers