尝试清理应用时出错

时间:2018-02-16 11:55:25

标签: android

尝试清理Android应用时出错

如下所示,我正在清理低于错误的应用程序。 请帮忙

PFB错误

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find com.android.support:multidex:1.0.2.
     Required by:
         project :app
   > Could not find com.android.support:appcompat-v7:26.0.0.
     Required by:
         project :app
   > Could not find com.android.support:design:26.0.0.
     Required by:
         project :app
   > Could not find com.android.support:cardview-v7:26.0.0.
     Required by:
         project :app
   > Could not find com.android.support:multidex:1.0.2.
     Required by:
         project :app
   > Could not find com.android.support:appcompat-v7:26.0.0.
     Required by:
         project :app > me.zhanghai.android.materialprogressbar:library:1.1.6
         project :app > com.sa90.materialarcmenu:library:1.4.1
   > Could not find com.android.support:design:26.0.0.
     Required by:
         project :app > com.sa90.materialarcmenu:library:1.4.1
   > Could not find com.android.support:appcompat-v7:26.0.0.
     Required by:
         project :app > com.google.android.gms:play-services:10.2.1 > com.google.android.gms:play-services-cast:10.2.1 > com.android.support:mediarouter-v7:24.0.0

1 个答案:

答案 0 :(得分:0)

解决这个问题

1-转到文件 - >设置 - >构建,执行,部署 - >编译器 2-添加到"命令行选项":

-x :app:prepareReleaseUnitTestDependencies -x :app:mockableAndroidJar -x :app:compileReleaseUnitTestSources

3-按"确定"并再次尝试重建项目。

将始终跳过单元测试编译任务,并且不会抛出任何错误。