Android Studio 1.X.X - Failed to find XXX:

当在github上看到一个很好的开源库,想集成时,开源库的readme都说让在工程下的build.gradle中的

dependencies

添加类似语句

compile ‘com.XXX:XXX:1.0.0‘

然后同步,发现报错了

Android Studio 1.X.X - Failed to find XXX:

这是因为你的Android Studio在离线模式,Setting中补选中

Gradle -> Offline work

然后再Sync一下,就发现这个库已经添加到我们的Library中了

时间: 2024-10-21 04:01:04

Android Studio 1.X.X - Failed to find XXX:的相关文章

Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'.的问题解答

Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'.的问题解答 完整的问题提示 Gradle: FAILURE:Build failed with an exception.*What went wrong:Execution failed for task ':compileDebugAidl'.>No

Android Studio报错:Failed to complete Gradle execution.

解决Android Studio报错:Failed to complete Gradle execution. 运行Android Studio的时候,出现以下错误: 原因:用于启动虚拟机的内存不够,android studio的默认最大内存是10g,所以对于4g.8g内存的电脑来说,内存不够用,不过为什么有时不会出问题有时会,可能是google优化不好吧,但这又有个问题,把参数改为1g.2g都不行,一定要更小才行,只能说明Android studio确实有bug. 解决方法 1: 解决方法 2

关于android studio 出现Error:Execution failed for task ':app:buildInfoDebugLoader'.的解决办法

今天在使用androidstudio的过程中,改了代码点击运行的时候发现android studio总是报 Error:Execution failed for task ':app:buildInfoDebugLoader'.> Exception while doing past iteration backup : Source /home/ruiqin/AndroidStudioProjects/DouTuGaoShou/app/build/intermediates/builds/de

android开发里跳过的坑——android studio 错误Error:Execution failed for task ':processDebugManifest'. > Manifest merger failed with multiple errors, see logs

使用AS在gradle里配置了多个定制版本,发现在编译版本切换时,会出现错误: Error:Execution failed for task ':processDebugManifest'.> Manifest merger failed with multiple errors, see logsInformation:Gradle tasks [:app:generatePhoneWulianDebugSources, :app:mockableAndroidJar, :app:prepa

Android Studio升级后projectBuild failed.

近期在升级Android Studio后,发现原先能编译通过的project,突然就编译只是了,原因是生成的AndroidManifest.xml文件里有乱码. 升级后: android studio 0.6.0 build tools 19.1.0 Android SDK tools 22.6.4. gradle 0.11.+ 错误信息: Error Info Error:(11) Error parsing XML: not well-formed (invalid token) Error

Android Studio报Error:Execution failed for task ':Companion:preDexDebug'.

错误例如以下: Error:Execution failed for task ':Companion:preDexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero

Android Studio报Error:Execution failed for task ':Companion:preDexDebug'.

错误如下: Error:Execution failed for task ':Companion:preDexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero ex

Android Studio 创建虚拟机失败 Failed to load 解决办法

Name: Nexus_S_API_21 CPU/ABI: ARM (armeabi) Path: H:\Users\Pavkoo\.android\avd\Nexus_S_API_21.avd Error: Failed to parse properties from H:\Users\Pavkoo\.android\avd\Nexus_S_API_21.avd\config.ini 导致原因: Android Studio 安装 和 Sdk的安装位置不在同一个盘符下面,要么都在C盘,要么都

Android Studio:Gradle project refresh failed. 解决方法

事件 换了个电脑,Android Studio拷过来,重新配置后,打开已有的项目,报错: Gradle project refresh failed. Connection timed out: connect. 这是因为Studio要更新Gradle插件,但是总也下载不成功. 解决方法 打开项目目录中的gradle\wrapper\gradle-wrapper.properties这个文件,内容如下: #Wed Nov 11 09:13:47 CST 2015 distributionBase