2017-12-10 10 views
1

をロードできませんでした。私は自分のプロジェクトや何かを行うことができません。 。私は新しいプロジェクトを作りましたが、できませんでした。Gradle 4.2でAndroidスタジオの最新の安定版にアップグレードした後、クラス 'org.gradle.api.internal.component.Usage'

提案がありますか?

Error:Unable to load class 'org.gradle.api.internal.component.Usage'

この予期しないエラーのために考えられる原因は次のとおりです。

  • のGradleの依存関係のキャッシュが壊れている可能性があります(これは時々、ネットワーク接続のタイムアウトの後に発生します。) 再ダウンロードの依存関係とシンクプロジェクト(ネットワークが必要です)
  • 状態Gradleビルドプロセス(デーモン)が壊れている可能性があります。すべてのGradleデーモンを停止すると、この問題が解決される可能性があります。 Gradleビルドプロセスを停止します(再起動が必要です)
  • プロジェクトには、プロジェクトの他のプラグインまたはプロジェクトによって要求されたGradleのバージョンと互換性のないサードパーティのプラグインが使用されている可能性があります。
GRADELプロセスが破損している場合は、IDEを閉じてすべてのJavaプロセスを終了することもできます。

私のGradleのビルド:

dependencies { 
implementation fileTree(include: ['*.jar'], dir: 'libs') 
androidTestImplementation('com.android.support.test.espresso:espresso- core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
implementation project(':libs:searchview') 
implementation project(':libs:AndroidImageSlider') 

implementation 'com.android.support:design:27.0.2' 
implementation 'com.android.support:appcompat-v7:27.0.2' 
implementation 'com.android.support:customtabs:27.0.2' 
implementation 'com.android.support:cardview-v7:27.0.2' 
implementation 'com.android.support:recyclerview-v7:27.0.2' 
implementation 'com.android.support.constraint:constraint-layout:1.0.2' 

implementation 'com.github.stfalcon:frescoimageviewer:0.5.0' 
implementation 'com.facebook.fresco:fresco:1.3.0' 
implementation 'com.squareup.picasso:picasso:2.5.2' 
implementation 'jp.wasabeef:picasso-transformations:2.1.2' 
implementation 'de.hdodenhof:circleimageview:2.2.0' 

implementation 'org.jsoup:jsoup:1.9.2' 
implementation ('com.squareup.retrofit2:converter-gson:2.0.2'){ 
    exclude group: 'org.apache.commons', module: 'commons-io' 
} 
implementation ('com.squareup.retrofit2:retrofit-converters:2.0.2'){ 
    exclude group: 'org.apache.commons', module: 'commons-io' 
} 
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0' 
implementation 'com.android.support.constraint:constraint-layout:1.0.2' 

implementation 'com.klinkerapps:drag-dismiss-activity:1.5.0' 

implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0' 

implementation 'com.roughike:bottom-bar:2.3.1' 
implementation 'pub.devrel:easypermissions:1.1.0' 

implementation 'com.google.firebase:firebase-messaging:11.8.0' 
implementation 'com.google.firebase:firebase-core:11.8.0' 
implementation 'com.google.firebase:firebase-crash:11.8.0' 

implementation('com.sangcomz:FishBun:[email protected]') { 
    transitive = true 
} 

testImplementation 'junit:junit:4.12' 

} 

apply plugin: 'com.google.gms.google-services' 

答えて

5

おかげで、私はこの問題を解決してきました!この問題は、私が使用しているgradleのバージョンが3.4.1であり、0.5.0にアップグレードすると、'com.novoda:bintray-release:0.4.0'のgradleバージョンのプラグインと互換性がないために表示されます。願いがあなたを助けることができます!

関連する問題