0
0

More than 1 year has passed since last update.

[Unity] Unityビルド時エラーExecution failed for task ':app:lintVitalRelease'の対処 [gradle]

Posted at

概要

Unityビルド時以下のエラーがでた時の対処を記述しています。

Execution failed for task ':app:lintVitalRelease'

対応策1

プロジェクトルートファルダにある「temp」フォルダ削除、Unity再起動

対応策2

以下の設定を行う。
2019だと
File → 「Builde Setting」→ 「Project Setting」 → 「Pulishing Settings」 → 「Custom Main Gradle Template」 のチェック入れるとandroidフォルダ以下に「maintemplate.gradle」ファイルが生成されるのでそれを修正する。

maintemplate.gradle
android {
    lintOptions {
        abortOnError false
        disable 'InvalidPackage'
        checkReleaseBuilds false
    }
}
0
0
1

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
0
0