升級到了android studio3,運(yùn)行ionic項(xiàng)目,提示以下錯(cuò)誤:
Error:Could not determine the dependencies of task ':compileReleaseJavaWithJavac'.
Could not resolve all task dependencies for configuration ':releaseCompileClasspath'.
Could not resolve project :CordovaLib.
Required by:
project :
Project : declares a dependency from configuration 'releaseCompile' to configuration 'release' which is not declared in the descriptor for project :CordovaLib.
解決辦法:
找到build.gradle
,注釋掉下面兩行
//debugCompile project(path: 'CordovaLib', configuration: 'debug')
//releaseCompile project(path: 'CordovaLib', configuration: 'release')
添加下面的內(nèi)容铆农,保存即可雏吭。
compile project(':CordovaLib')