2017-10-05 13 views
1

Android8.0アダプティブアイコンを試しました。 しかし、私はこれを解決する方法...下記使用時にリントが中止する適応アイコン

src/main/res/mipmap-anydpi-v26/ic_launcher.xml: Error: 
Launcher icons must be in PNG format [IconLauncherFormat] 


Explanation for issues of type "IconLauncherFormat": 
Launcher icons should be in the PNG format. This requirement is enforced by 
the The Google Play Developer Console. 

https://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size 

を糸くずのエラーをキャッチ? LintOptionで無効にすることはできますか?

助けてください。ありがとう。

+1

AndroidスタジオとAndroidプラグインを3.0.0にアップデートしてください。 – natario

+0

ありがとう! AS3.0では、「アイコンランチャーフォーマット」が無効になりました。 AS3.0で抑制されたときにエラーが発生しました。 – yuki312

答えて

0

あなたはアンドロイドセクションでは、あなたのアプリ/ build.gradleファイルにこれを追加する必要があります。

lintOptions { 
    lintConfig file("lint.xml") 
} 

し、その後、以下の内容のファイルアプリ/ lint.xmlを作成します。

<lint> 
    <issue id="IconLauncherFormat"> 
     <ignore path="src/main/res/mipmap-anydpi-v26/ic_launcher.xml" /> 
    </issue> 
</lint>