No Resource Found Errors For Support:appcompat-v7:22.0.0 On Android Studio
Solution 1:
I got this error when the filename was too long.
If you are running under windows, your build/intermediates/... files can get very long. You will get an odd error like this one if that happens.
Solution 2:
I solved this by adding multiDexEnabled true
in defaultConfig
in gradle file.
And by adding
dexOptions {
javaMaxHeapSize "4g"
}
after defaultConfig
.
Solution 3:
Since I ran into the same problem and there is no complete answer, I'll post it.
As @Brian Donovan-Smith mentioned, the problem occurs when one or more file names is too long (more than 260 characters). It is worth to note that the name includes the entire path. So, that was the problem in my case, and I solved it by moving the source folders to a closer to C: location.
Solution 4:
Make sure you downloaded the files on your computer via SDK manager like in this guide: https://developer.android.com/tools/support-library/setup.html (Scroll down to "Adding libraries with resources")
Gradle alone won't do it, you need to download via SDK manager additoionally as this library inlcudes ressources:
Some Support Libraries contain resources beyond compiled code classes, such as images or XML files. For example, the v7 appcompat and v7 gridlayout libraries include resources.
Post a Comment for "No Resource Found Errors For Support:appcompat-v7:22.0.0 On Android Studio"