last day (15 days later) » 

6:10 AM
hello
 
so, what info can i give you?
i tried to remove android.enableAapt2=false but the long error appeared again. Android Studio said it was deprecated but I think I still need it
 
are you getting this error when you have marked Aapt2 as false??
 
yeah, i still get an error. another one related to auto-generated files
Failed to parse XML resource file 'C:\Users\NEW03\Documents\AndroidProjects\cssimple\sherlok\build\intermediates\p‌​ackaged_res\debug\values\values.xml'
 
upload the screenshot
of error
 
6:17 AM
that's the error
it's on build
 
do you have values.xml??
file
 
how can i upload image here?
i searched for values.xml on my project but only the auto-generated files have it
 
try this
lib build.gradle

dependencies { ... compile 'com.android.support:support-annotations:27.0.1' }
2
A: Execution failed for task app processdebugresources failed to parse xml resource file android studio

LucianoI hit this issue when upgrading my buildToolsVersion. In case anyone else has this issue, here's what I did to fix it: I turned on --stacktrace for gradle, and found it was spitting out the following error after the "Failed to parse XML resource file" above: Error:java.lang.IllegalArgumentExce...

check this question too
 
how to use --stacktrace? sorry don't know how to use that?
 
File->setting->build,execution->compiler
set command line option : --stacktrace
and analyze the stacktrace you will find your error that is basically the coding issue the gradle issue is resolved here now you just need to debug a little and find where is the error
and please mark the question as answered
 
6:30 AM
this is the stacktrace
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sherlok:generateDebugRFile'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
the app is not really my code. i'm just editing an existing code so don't really know how the code works.
 
have you tried to add this in you gradle file
compile 'com.android.support:support-annotations:27.0.1'
 
i haven't
still not working. the app got another module named sherlok. i already put implementation 'com.android.support:support-annotations:28.0.0'
implementation 'com.android.support:support-v4:23.4.0' on it and the error is still there
 
6:48 AM
ok dude i have helped you as much as i can but beyond this i can't sorry of that
 
it's ok. thanks a lot. but i think it's working already, with other errors popping up.
there's this xml file named abs_attrs. inside it is a <declare-styleable name="SherlockSpinner"> which i think contains some settings for a thing called SherlockSpinner. the stacktrace says that SherlockSpinner sets a value that can't be found. after removing it, the error changed.
can you help me with the other errors.
 
 
3 hours later…
10:16 AM
this is my new errors
[org.gradle.api.Project] AGPBI: {"kind":"error","text":"Attribute \"background\" already defined with incompatible format.","sources":[{"file":"C:\\Users\\NEW03\\.gradle\\caches\\transforms-1\\files-1.1\\appcompat-v7-26.1.0.aar\\508a22a81bc4139c79d92f3f1428ae0c\\res\\values\\values.xml","position":{"startLine":86,"startColumn":4,"startOffset":6582,"endColumn":103,"endOffset":6681}}],"original":"","tool":"AAPT"}
[org.gradle.api.Project] AGPBI: {"kind":"error","text":"Original attribute defined here.","sources":[{"file":"C:\\Users\\NEW03\\Documents\\AndroidProjects\\cssimple_bak2\\sherlok\\bu
 

last day (15 days later) »