ionic在android studio3.0下运行报错的解决方法

升级到了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')

你可能感兴趣的:(ionic在android studio3.0下运行报错的解决方法)