Unable to resolve dependency for ':app@yingyongbaoDebugAndroidTest/compileClasspath': Could not ...

错误:

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 导入项目即可。

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值