- Android resource compilation failed #115
- Comments
- Fraid commented May 15, 2018
- sanjukurian commented May 29, 2018 •
- jugarrit commented May 29, 2018
- wmora commented May 29, 2018
- keyeechen commented Jun 14, 2018
- joejensen8 commented Jun 27, 2018
- zaiwang commented Jul 3, 2018
- wmora commented Jul 4, 2018
- TusharGogna commented Jul 5, 2018
- romshiri commented Jul 9, 2018
- wmora commented Jul 10, 2018
- pratheepchowdhary commented Jul 14, 2018 •
- wmora commented Jul 17, 2018
- GuptaMunna commented Jul 29, 2018
- pedrofsn commented Aug 10, 2018
- alavers commented Aug 10, 2018
- pedrofsn commented Aug 10, 2018
- wmora commented Aug 13, 2018
- szee45 commented Oct 3, 2018
- landsnail commented Oct 12, 2018
- rabidh052 commented Oct 20, 2018
- hackaprende commented Oct 24, 2018
- n-sviridenko commented Oct 29, 2018
- loopq commented Oct 30, 2018
- jilleb commented Oct 31, 2018 •
- wmora commented Nov 5, 2018
- Rahmatbd commented Jan 10, 2019
- shane-harris commented Jan 10, 2019
- shane-harris commented Jan 10, 2019 •
- SharkFourSix commented Oct 2, 2019
- 19860917013 commented May 15, 2021
- Ahmadkaj commented May 16, 2021
- Ahmadkaj commented May 16, 2021
- Mayurjag commented May 31, 2021
Android resource compilation failed #115
Comments
Fraid commented May 15, 2018
I know it’s early but I got following error from Android Studio 3.2 Preview when using com.android.tools.build:gradle:3.2.0-alpha14 :
It’s easy to reproduce, just create an empty project with build tool version 3.2.0-alpha14 . And the following dependencies:
After somme research this seem to be linked with following resources:
I have been using Android studio Preview (from canary channel) for month now because the release version is slow on mac os hight sierra.
The text was updated successfully, but these errors were encountered:
sanjukurian commented May 29, 2018 •
Same issue. Any updates on this?
jugarrit commented May 29, 2018
We haven’t had a chance to take a look at this yet, we’ll keep you updated once we do.
Thanks for understanding.
wmora commented May 29, 2018
Should be fixed in version 5.12.3
keyeechen commented Jun 14, 2018
I also have similar issue with AS Preview.
joejensen8 commented Jun 27, 2018
I’m having this same issue.
AS Preview Beta 1
Android Build Tools 3.2.0-beta01
implementation ‘io.smooch:core:5.13.1’
implementation ‘io.smooch:ui:5.13.1’
zaiwang commented Jul 3, 2018
how to deal with this issue, thanks, same issue in my project.
wmora commented Jul 4, 2018
The demo app is working for me with:
AS Preview Beta 2
Android Build Tools 3.2.0-beta02
implementation ‘io.smooch:core:5.13.1’
implementation ‘io.smooch:ui:5.13.1’
TusharGogna commented Jul 5, 2018
I have the same issue. Can someone tell why this error occurs?
romshiri commented Jul 9, 2018
wmora commented Jul 10, 2018
is it possible to provide a sample project reproducing the issue? It’s working for me using the demo app with the latest AS preview
pratheepchowdhary commented Jul 14, 2018 •
Follow this syntax
wmora commented Jul 17, 2018
@pratheepchowdhary do you mean adding that resource to my app? Because I couldn’t reproduce the issue by doing that
GuptaMunna commented Jul 29, 2018
same issue anyone got the answer
pedrofsn commented Aug 10, 2018
alavers commented Aug 10, 2018
pedrofsn commented Aug 10, 2018
Active proguard and you’ll see app crashing. It’s probably happen because proguard are removing some classes and methods of library, so we need specify what is really needed for every possible case. How I need move on, I accepted evertything of the library as a non excluding file to proguard.
wmora commented Aug 13, 2018
@pedrofsn running Proguard may fail because of a missing Glide method. If the error you are getting is
Add the following to your proguard config. We’ll include it in our next release:
szee45 commented Oct 3, 2018
I was also having the same error but I removed all nonresourece item from resource file. And it is working fine now.
landsnail commented Oct 12, 2018
it seems that the lastest version of android which is 28 will not work the format like :
it mean that google will not allow self define id values any more, after all the item fix , it really work.
rabidh052 commented Oct 20, 2018
how to solve this problem?
hackaprende commented Oct 24, 2018
Same problem here, started with Android Studio 3.2.1 and buildToolsVersion ‘28.0.3’, but I cannot modify the autogenerated files, they generate again
n-sviridenko commented Oct 29, 2018
loopq commented Oct 30, 2018
jilleb commented Oct 31, 2018 •
Same here, AS 3.2.1 and buildTools 28.0.3. same issue.
wmora commented Nov 5, 2018
what SDK version are you using? Can you provide a sample project or setup that reproduces the issue? I haven’t been able to reproduce, unfortunately
Rahmatbd commented Jan 10, 2019
Android resource compilation failed
Output: values_values.arsc.flat: error: failed to open.
Command: C:\Users\EZZECASH.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\6fd25df41b5b28f816048a23d6a0b147\aapt2-3.2.1-4818971-windows\aapt2.exe compile —legacy
-o
C:\Users\EZZECASH\Desktop\AhleHaq\app\build\intermediates\res\merged\debug
C:\Users\EZZECASH\Desktop\AhleHaq\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
shane-harris commented Jan 10, 2019
I have this same issue. someone please help
shane-harris commented Jan 10, 2019 •
SOLVED.
Ok so there hasn’t been a clear explanation to solve this issue but i just figured it out.
Thanks to landsnail. His explanation was correct but not geared to someone who has never built an app. So here is the step by step.
Go into your app project.
Navigate to the Resources folder (res)
Open values folder
Open ids.xml
— This should show you the list of all items that you created in the .xml files in the layouts folder
Each item should be of the format
the question marks should contain the id that you assigned the item that you created in your layouts files.
DO NOT put the name in be the name of the item in between . .
here is an example of what i did wrong
childText
this is what i did to correct it
type=»id»>`
there MUST be an for ever item that you created in your various layout .xml files.
Hope this helps someone
SharkFourSix commented Oct 2, 2019
If you have an Antivirus or Antimalware service running somewhere, make sure you add exemptions to everything under Android Studio and the Sdk in (%applocaldata%)
Check also that Windows Defender’s Controlled Folder Access is On or Off and that you have added AS files on the whitelist. Restart Android Studio and the problem should be fixed.
19860917013 commented May 15, 2021
how to solve this problem?
Ahmadkaj commented May 16, 2021
Ahmadkaj commented May 16, 2021
Failed to compile values file. how to fix this issue
this is my build.gradle
plugins <
id ‘com.android.application’
>
android <
compileSdkVersion 29
buildToolsVersion «30.0.2»
Mayurjag commented May 31, 2021
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник