2017-12-14 15 views
2

Gradleのエラー:予期しない入力:android.gms:プレイサービスのGradleエラーでランタイムショーのエラーで

エラー:実行タスクに失敗しました「:アプリ:transformClassesWithInstantRunForDebug」。

Unexpected inputs: ImmutableJarInput{name=com.google.android.gms:play-services-basement:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/43.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.firebase:firebase-analytics:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/37.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.android.gms:play-services-base:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/39.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.firebase:firebase-common:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/41.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.firebase:firebase-core:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/36.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.android.gms:play-services-tasks:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/42.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.firebase:firebase-analytics-impl:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/38.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.google.firebase:firebase-iid:9.0.0, file=/home/nawaf/AndroidStudioProjects/YugiohDeckBuilder/app/build/intermediates/transforms/profilers-transform/debug/40.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}

Gradleのプロジェクトレベル:

dependencies { 
     classpath 'com.android.tools.build:gradle:3.0.1' 
     classpath 'com.google.gms:google-services:3.1.0' 

    } 

Gradleのアプリレベル:

dependencies { 
... 
} 
apply plugin: 'com.google.gms.google-services' 
+0

あなたが試すんでした: - クラスパス「com.google.gms:グーグルのサービス:3.0.0」 – InsaneCat

答えて

1

を実行します。

 MobileAds.initialize(getApplicationContext(), "ca-app-pub-xxxxxxxxxxxxx"); 

すべての担当者に感謝します。

2

あなたは、Android Studioでインスタントの実行を可能にする持っているようです。 >設定 - -

1)ファイルからのインスタントファイル名を指定して実行を無効にしてくださいあなたのプロジェクト
3を清掃してください)>インスタントファイル名を指定して実行
2)私は、問題が解決この行を追加するとあなたのApp

+0

が、私はあなたのターゲットSDKのバージョンを教えてSDKのバージョンをコンパイルし、ツールのバージョン –

+0

私のために動作しませんでした私はプロジェクトを再構築し、キャッシュを無効にすることでこれを解決しました。 –

+0

私を構築してください –

関連する問題