Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgraded to AppCompat v22.1.0 and now getting "removing attribute" error

I've just upgraded my app to use AppCompat v22.1.0 and I'm getting the following exception from the AppCompat layout XML file:

removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd
    from <ImageView>
removing attribute http://schemas.android.com/apk/res/android:textAlignment
    from <android.support.v7.internal.widget.DialogTitle>
removing attribute http://schemas.android.com/apk/res/android:layoutDirection
    from <LinearLayout>

enter image description here

I upgraded to version v1.8 of the JDK and does not work either.

like image 781
seba123neo Avatar asked Apr 22 '15 15:04

seba123neo


2 Answers

See discussion on https://code.google.com/p/android/issues/detail?id=164673

You have a couple of options:

  • Set Preferences > Android > Build > Build output to Normal or Silent. Verbose is causing the problem.
  • Force SDK Build Tools 21.1.2 for AppCompat project only in project.properties, see https://github.com/dandar3/android-support-v7-appcompat/blob/master/project.properties

You can have as many SDK Build Tools installed, you can specify a version per project or otherwise it will pick up the latest.

like image 148
Dan Dar3 Avatar answered Nov 15 '22 05:11

Dan Dar3


Solved by now uninstalling the "SDK v22.0.1 Build Tools" and install a previous version.

like image 35
seba123neo Avatar answered Nov 15 '22 04:11

seba123neo