Error when compiling Android Studio project with Gradle

Asked

Viewed 663 times

0

I’m having a problem compiling my Gradle project. I have the following answer from the compiler:

Error:Gradle: Execution failed for task ':mobile:processBroadcastHomologDebugResources'.
        > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: 
        Process 'command '/media/leonardootto/data/work/tools/java/android-sdk-linux/build-tools/22.0.0/aapt'' 
        finished with non-zero exit value 1

1 answer

1

I found a problem with my layout, although compiling does not report any useful information.

I have the following layout:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/cinza_bg"
    android:orientation="vertical"
    android:id="@id/rootLayout">

</LinearLayout>

I already had another place with this id, so I had to change to:

<LinearLayout 
    ...
    android:id="@+id/rootLayout">
</LinearLayout>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.