I got this error:
removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <ImageView>
from the abc_activity_chooser_view.xml
XML file when compiling the appcompat v7 library
in my Android project.
Things I have tried:
-clean
directive to eclipse.ini
file.But without any success.
Tools I used are:
Does anyone have any suggestion on how to fix, or workaround this error till Google fix this error?
I can't deploy my Android package until this error is fixed.
Thanks for any help.
To fix the android:layout_marginEnd
error, within Eclipse, open the project.properties
file within the appcompat
v7 library and add the following directives:
target=android-21
sdk.buildtools=21.1.2
Note: You may need to install the Android SDK Build Tools v21.1.2 [if you haven't already] via the Android SDK Manager.
For those wishing to support Android 5.1+ (API 22) in your Android apps, you can add the following directives to the project.properties
file of each of your Android project:
target=android-22
sdk.buildtools=22.0.1
Note: You may need to install the Android SDK Build Tools v22.0.1 [if you haven't already] via the Android SDK Manager.
So, in essence, you're using one version of the Android SDK Build Tools to build your Android apps, and another to fix the android:layout_marginEnd
error in the appcompat
v7 library.
The documentation for the sdk.buildtools
directive is here. The documentation also include info on how to setup the buildToolsVersion
directive in the build.gradle
file for those using Android Studio and Gradle.