LoginSignup
1
2

More than 5 years have passed since last update.

Error: Attribute application@supportsRtl value=(false) from AndroidManifestで動かなくなった時のメモ

Last updated at Posted at 2017-09-28

表題のエラーで急にビルドできなくなったのでメモ

原因はfacebook-android-sdk:4.27.0にアップグレードされたから発生したらしい。

解決法はSuggestionに書かれていたとおり、
Suggestion: add 'tools:replace="android:supportsRtl" to element at androidManifest.xml to override'

だけど
のところにxmlns:tools="http://schemas.android.com/tools" が記述されている状態では解決せず、applicationタグ内に記述する必要があったので少し困った。

<application
        xmlns:tools="http://schemas.android.com/tools" <-ここにこれが必要
        android:name=".AAA"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_display_name"
        android:largeHeap="true"
        android:supportsRtl="false"
        android:theme="@style/AppTheme"
        tools:replace="supportsRtl"<-これを追加で解決
>

参考
https://stackoverflow.com/questions/39285678/manifest-merger-error-toolsreplace-not-working

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2