ERROR: Unable to resolve dependency for Could not find aar

今天導入aar出現一個錯誤、找不到aar

signing.properties not found
app104946: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'com.github.bumptech.glide:compiler:4.7.1', 'com.jakewharton:butterknife-compiler:8.8.1' and apply the kapt plugin: "apply plugin: 'kotlin-kapt'".

CONFIGURE SUCCESSFUL in 0s
ERROR: Unable to resolve dependency for ':app104946@noGPlayDebug/compileClasspath': Could not find :104954_2019081311:.
Show Details
Affected Modules: app104946

ERROR: Unable to resolve dependency for ':app104946@noGPlayDebugAndroidTest/compileClasspath': Could not find :104954_2019081311:.
Show Details
Affected Modules: app104946

ERROR: Unable to resolve dependency for ':app104946@noGPlayDebugUnitTest/compileClasspath': Could not find :104954_2019081311:.
Show Details
Affected Modules: app104946

ERROR: Unable to resolve dependency for ':app104946@noGPlayRelease/compileClasspath': Could not find :104954_2019081311:.
Show Details
Affected Modules: app104946

ERROR: Unable to resolve dependency for ':app104946@noGPlayReleaseUnitTest/compileClasspath': Could not find :104954_2019081311:.
Show Details
Affected Modules: app104946


解決方法
在module.gradle文件下增加下面這個就好了

 android {  
	  repositories {
	        flatDir {
	            dirs 'libs'
	        }
	  }
 }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章