Error: failed linking file resources

Johanna picture Johanna · Dec 31, 2017 · Viewed 7.4k times · Source

Every time I am trying to turn on my app it shows up an error:

Error:error: '*/*' is incompatible with attribute android:type (attr) enum [linear=0, radial=1, sweep=2].
Error:'*/*' is incompatible with attribute android:type (attr) enum [linear=0, radial=1, sweep=2].
Error:failed linking file resources.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt

The code looks fine (I guess) but I was doing the reinstallation of system while making this app. What kind of files am I missing? Which one were not copied?

Answer

Manny picture Manny · Jul 13, 2018

I had the same problem, But I solved it by updating to the latest Gradle plugin version.