这是我的离子信息
cli packages: (/Users/billb/dev/customer-mkt-app/node_modules)
@ionic/cli-utils : 1.15.2ionic (Ionic Cli) : 3.15.2
全球套餐:
cordova (Cordova Cli) : 7.0.1
本地包裹:
@ionic/app-scripts : 3.0.1Cordova Platforms : androID 6.2.3 ios 4.4.0Ionic Framework : ionic-angular 3.3.0
系统:
AndroID SDK Tools : 26.1.1ios-deploy : 1.9.2Node : v6.11.5npm : 3.10.10OS : macOS SIErraXcode : Xcode 9.0.1 Build version 9A1004
环境变量:
ANDROID_HOME : /Users/billb/library/AndroID/sdk
其他:
backend : pro
我可以成功构建应用程序.当我尝试在AndroID Studio中打开它时,我收到了一些错误,主要是围绕一个gradle同步失败.这是Messages控制台中的5个错误.
Unable to resolve dependency for ‘:@deBUG/compileClasspath’: Could not resolve project :Cordovalib.
Could not resolve project :Cordovalib.required by:
project :Project : declares a dependency from configuration ‘deBUGCompile’ to configuration ‘deBUG’ which is not declared in the descriptor for project >:Cordovalib.
Unable to resolve dependency for ‘:@deBUGAndroIDTest/compileClasspath’: Could not resolve project :Cordovalib.
Could not resolve project :Cordovalib.required by:
project :Project : declares a dependency from configuration ‘deBUGCompile’ to configuration ‘deBUG’ which is not declared in the descriptor for project >:Cordovalib.
Unable to resolve dependency for ‘:@deBUGUnitTest/compileClasspath’: Could not resolve project :Cordovalib.
Could not resolve project :Cordovalib.required by:
project :Project : declares a dependency from configuration ‘deBUGCompile’ to configuration ‘deBUG’ which is not declared in the descriptor for project >
:Cordovalib.
Unable to resolve dependency for ‘:@release/compileClasspath’: Could not resolve project :Cordovalib.
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.
Unable to resolve dependency for ‘:@releaseUnitTest/compileClasspath’: Could not resolve project :Cordovalib.
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.
我真的不知道这意味着什么,谷歌没有任何真正的帮助.我需要做什么?
注意:发布此内容后发现此内容.在此将其转发,以防它可以帮助其他人.
Don’t upgrade to Android Studio 3
解决方法:
我在build.gradle文件中注释了下面的行:
//deBUGCompile project(path: 'Cordovalib', configuration: 'deBUG') //releaseCompile project(path: 'Cordovalib', configuration: 'release')
并补充说:
compile project(':Cordovalib')
这对我有用.
总结以上是内存溢出为你收集整理的更新到Android Studio 3.0后无法运行Ionic应用程序全部内容,希望文章能够帮你解决更新到Android Studio 3.0后无法运行Ionic应用程序所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)