Gradle error “Attribute “xxx” has already been defined” in Android Studio August 19, 2023 by Tarik You should remove this line in your dependencies : compile 'com.android.support:appcompat-v7:18.0.0'