你好,我同時產生簽署的apk正在此錯誤:當我使用谷歌地圖時,生成簽名apk的錯誤?
Error:Execution failed for task ':app:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.
To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
這是我的清單:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.OMMSoftware.Navsahydri">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"
android:protectionLevel="signature" />
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"
android:protectionLevel="signature" />
<uses-library
android:name="com.google.android.maps"
android:required="true" />
<application
android:allowBackup="true"
android:icon="@drawable/logo_circular"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/MyMaterialTheme">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyDjqmmXd1d1yk7BtncDQgXSmya-NdBkc2w" />
<activity android:name=".Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Home" />
<activity android:name=".Gallery" />
<activity android:name=".Contactus" />
<activity android:name=".Placements"></activity>
</application>
</manifest>
代碼是免費的錯誤,甚至APK正在建設,但是當我嘗試生成簽署的apk它顯示上面的錯誤,我在我的項目中使用谷歌地圖。請幫助。
你有沒有嘗試添加'lintOptions'建議你的'build.gradle'? – antonio
不,還沒有。我需要添加它嗎? – Abhijeet