添加新jar包報錯Error:Could not resolve all files for configuration

 

bug解決記錄,今天領導要求在高德地圖上畫線要畫的漂亮些,然後查看高德api後發現新api有一些相關方法,於是更新了一下高德sdk,在gradle文件中修改了這段代碼,從舊的修改到新的sdk名稱,修改後就報出下面的錯誤。

implementation files('libs/AMap3DMap_7.4.0_AMapNavi_7.4.0_AMapSearch_7.3.0_AMapLocation_4.9.0_20200416.jar')

報出如下錯誤:

Error:Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
> Failed to transform file 'AMap3DMap_7.4.0_AMapNavi_7.4.0_AMapSearch_7.3.0_AMapLocation_4.9.0_20200416.jar' to match attributes {artifactType=android-classes} using transform JarTransform
   > Transform output file E:\svn_workspace\StopCarNavi\app\AMap3DMap_7.4.0_AMapNavi_7.4.0_AMapSearch_7.3.0_AMapLocation_4.9.0_20200416.jar does not exist.

解決辦法:

按快捷鍵 ctrl+alt+shift+S 調出

解決辦法就是把原有的移除重新添加後clean下項目,問題就解決了。

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