Androids AppValidator complains a missing drawable-xhdpi folder. Why? - android

Androids AppValidator complains that a special folder is missing (drawable-xhdpi). The settings in the Manifest are identical to several other projects. I see that error only for one project.
What causes this?
Folder "drawable-xhdpi" does not exist. Create the "drawable-xhdpi" folder inside the "res" folder and add the appropriate drawables to it. Unknown AppValidator problem
Thanks in advance.

Related

Android Studio: Drawable Folder adding subdirectory or create new folders issue

I am trying to do one of two things
add subdirectory to the drawable folder, as I have away team and home team that need to be in separate folders.
It seems that it can not be done.
So I am trying the following where I create 'top' folders like aTeam and hTeam by adding New Resource Directory and give them the name of aTeam and hTeam with the resource type of drawable.
The folders are created in the project folder structure but they are not being displayed in the android studio project and I can not reference them?
does anyone know what i am doing wrong?

Can't add Resources/layout folder in shared Xamarin project

I'm working on shared project and needed to add Resources/layout folder but this leads me to error about this folder alredy existing.
In my project Resources folder only have Drawable and values subfolders. In actual file system here is also some alternative folders for drawables. But here is no layout folder.
How can I solve this problem?
Maybe it's fine to use different folder name? I can add layout_ folder without errors.
Problem was solved by removing code refering to not existing yet Resource.Layout and rebuilding solution.
Can't tell for sure what's actually solved a problem.

Images and Directories not showing in Drawables directory

I imported a number of image assets, and I copied the assets into the project by copy/paste them into the project via Finder on my Mac. I've done a clean/rebuild on the project, and the files & directories showed for a moment, but then they disappeared. Now I can't get the files and the directories to show up. The files are clearly in the directory and project, but they don't show in Android Studio. They are labeled drawable-hdpi, drawable-mdpi, and so on. Here is an image of the files:
Here is my Android Studio:
Switch in project view will show you all folders for example drawable.hdpi and so on check all these folder for all images.
It turns out that I added my images to the drawables directory rather than the resources directory! Ugh...

Invalid resource directory name in android

I am using android studio, I added gms library in my android project. And after build I got error
Error:Execution failed for task ':app:mergeDebugResources'.
> D:\Android\Mejodo\app\src\main\res\values-11: Error: Invalid resource directory name
I read in other articles that, these folders are for different screen sizes. But I have only three values folders (values, values-11, values-v11), So >=11 version handle with values-11 folder.
But I don't know how to solve it.
Can I delete these folders ?
Please suggest something.
v11 in values-v11 is a qualifier for Android sdk version v11.
Take a look at http://developer.android.com/guide/topics/resources/providing-resources.html.
So I think "values-11" folder is unnecessary and wrong.
Delete all unnecessary folder containing empty folder
Like above "values-11" folder is unnecessary so delete it
After that clean the project.
I had the same error. Indeed values-11 is not a valid name, instead it has to be replaced by values-v11 in order to compile. So basically I would suggest to move anything you had in folder values-11 and move it into the values-v11 one.

R.java file doesn't allow creation of new folder in the project

I have been trying to create a folder manually to keep all the styling xml files inside my android project using eclipse in windows 7. As soon as I create a xml file inside that new folder and save the xml file. My R.java goes missing. I understand that R.java is not taking in the manual changes to the project. I believe there is a way we can make changes to the project by manually adding folders and reflecting the changes to the R.java file accordingly.
So can anyone please help me out as to what do I have to do to allow manual changes in my project as described above?
the only way you can create a styles xml file, is inside a values folder, so you can't assemble all the styles files inside one folder, android will not recognize it, thus, not allowing what you are trying to do
here is a link to follow when creating a folder,
http://developer.android.com/guide/topics/resources/providing-resources.html
check this part within Table 1. Resource directories supported inside project res/ directory.
Styling XML files should go someone in your RES folder, typically some flavor of "values" (like just "values" or "values-hdpi", etc.)
Putting them somewhere else can cause errors, usually they just can't be used but also could cause Eclipse to not be able to build the R.java file correctly.

Categories

Resources