错误:
Unable to resolve dependency for ‘:app@yingyongbaoDebug/compileClasspath’: Could not resolve project :wxframework.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoDebugAndroidTest/compileClasspath’: Could not resolve project :nexus.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoDebugAndroidTest/compileClasspath’: Could not resolve project :wxframework.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoDebugUnitTest/compileClasspath’: Could not resolve project :nexus.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoDebugUnitTest/compileClasspath’: Could not resolve project :wxframework.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoRelease/compileClasspath’: Could not resolve project :nexus.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoRelease/compileClasspath’: Could not resolve project :wxframework.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoReleaseUnitTest/compileClasspath’: Could not resolve project :nexus.
Open File
Show Details
Unable to resolve dependency for ‘:app@yingyongbaoReleaseUnitTest/compileClasspath’: Could not resolve project :wxframework.
Open File
Show Details
首先参考一下官方说明:https://github.com/bmfe/eros/issues/249
错误原因:
是因为生产项目的时候没有执行install.sh脚本命令。其实在官方文档的案列中有说明,只是表述可能不够浅显易懂,笔者没有理解他的意思。
————————————————————————————————
eros官方文档:
Android 导入工程
确保您已经安装完成 Android 所需环境。
- 命令行进入
/platforms/android/WeexFrameworkWrapper/
目录下 执行install.sh 文件。等待下载依赖库。
下载完成后手动导入:
1.点击 AndroidStudio
上方的File--->New--->Import Project
。
…
————————————————————————————————
笔者在根据官方文档操作到这里的时候,以为是在命令行中进入该目录,执行eros install命令。没有理解执行install.sh的含义,
没有明白怎么运行install.sh 。然后就直接使用AndroidStudio
导入项目了,因此报错。
这里笔者说明两个方法:
一、 打开命令行窗口进入该路径下,然后输入 sh install.sh (如图所示)
当然这里要注意:脚本文件install.sh在该目录下,所以这样写是正确的。这里的路径写法支持.\install.sh;比如进入的目录是install.sh文件的上一级,就应该输入命令:sh .\install.sh
最后提示 依赖库更新完成 证明成功了。然后再打开AndroidStudio
导入项目即可。