2017-04-25 8 views
0

私は、私が作成したときに、私のコードは、私は計算距離プロジェクトを「真」アンドロイド:allowBackup「真」に=「true」のエラー

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.dsadas.bottombardmo"> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".MainActivity"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 

android:allowBackup="true"エラー使用してきたが、多くのプロジェクトがある一つの問題を持っていますマニフェストファイルにプロジェクトが生成され、エラーが生成されます。

<application android:allowBackup="true"> 

私はあなたのライブラリの一部では、falseに明示的に設定allowBackupを使用して少なくとも一つの存在だからだ

+0

ライブラリを使用していますか? –

答えて

0

に答えて教えてください。マニフェストでtools:replaceを使用できます。

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.dsadas.bottombardmo" 
    xmlns:tools="http://schemas.android.com/tools"> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme" 
     tools:replace="allowBackup"> 
     <activity android:name=".MainActivity"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 
</manifest> 
関連する問題