升级到了android studio3,运行ionic项目,提示以下错误:
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')
添加下面的内容,保存即可。
compile project(':CordovaLib')