Android studio编译时报Could not download compiler.jar 5C

我今天Android studio编译项目时报Could not download compiler.jar (com.github.bumptech.glide:compiler:4.9.0): No cached version available for offline mode错误,
我的Android studio版本是3.5,gradle版本是gradle-5.3-rc-2-all
图片说明

 有没有大神知道是怎么回事

3个回答

有个地方你仔细看一下,File-Setting,然后搜索gradle图片说明
看看offline是不是被勾选了,如果是,去掉,然后重新试一下,如果这样不行,
清空gradle本地缓存,就是win+R,然后输入.gradle,全部删除,然后关闭as,再重新打开as

换个网络环境,AS一般网都不好

你这个是下载不到 compiler.jar包,本地也没有这jar包的缓存,如果开了offline work模式就关了重新编译,如果没有就是网络不行,可以去同事那复制一个jar包放在缓存目录下

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Android Studio 编译时报文件不能删除,编译失败
在使用android studio 进行android 开发学习的时候,报android studio 无法删除 app/build模块下部分文件,导致编译失败。   出现这种情况后,自己进行了如下的尝试:      1、进入指定目录进行删除,发现需要管理员权限。然后获取管理员权限后依旧不能删除,说管理员没有权限!!!!      2、然后关闭android studio ,尝试重新删除,还
Android Studio could not find class
![图片说明](https://img-ask.csdn.net/upload/201608/18/1471505027_514933.png)rn一个CheckBox 多选按钮实现程序,layout预览没有问题,启动APK不能运行。rnrnbuild.gradlern![图片说明](https://img-ask.csdn.net/upload/201608/18/1471511535_934926.png)rnrnlogcat:rnrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.900 3020-3020/com.example.administrator.myapplication12 E/AndroidRuntime: FATAL EXCEPTION: mainrn Process: com.example.administrator.myapplication12, PID: 3020rn java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.administrator.myapplication12/com.example.administrator.myapplication12.MainActivity: java.lang.NullPointerExceptionrn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)rn at android.app.ActivityThread.access$800(ActivityThread.java:135)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5017)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)rn at dalvik.system.NativeStart.main(Native Method)rn Caused by: java.lang.NullPointerExceptionrn at com.example.administrator.myapplication12.MainActivity.onCreate(MainActivity.java:39)rn at android.app.Activity.performCreate(Activity.java:5231)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) rn at android.app.ActivityThread.access$800(ActivityThread.java:135) rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) rn at android.os.Handler.dispatchMessage(Handler.java:102) rn at android.os.Looper.loop(Looper.java:136) rn at android.app.ActivityThread.main(ActivityThread.java:5017) rn at java.lang.reflect.Method.invokeNative(Native Method) rn at java.lang.reflect.Method.invoke(Method.java:515) rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) rn at dalvik.system.NativeStart.main(Native Method) rn
Android Studio 或IntelliJ IDEA 编译时报内存溢出的配置
加入如下图配置
关于Mac os gradle 编译时报‘could not download gradle.jar…’的错误问题解决
报这个错误的主要原因是没有对应的gradle的jar包 需要分别在目录                 Users/apple /.gradle/wrapper 和android studio的目录     Android Studio.app/Contents/gradle 下都放上对应的gradle的jar包就可以解决问题了。 关于gradle的jar包版本查看在项目的gradle/w
android studio编译异常处理
info: Could not find method renderscriptSupportMode() for arguments [true] on ProductFlavor_Decorated{name=main, dimension=null, minSdkVersion=ApiVersionImpl{mApiLevel=14, mCodename=’null’}, targetS
加快Android Studio 的编译
加快Android Studio 的编译 Aug 20, 2013Android Studio 用了这么久了,亮点就不说了,唯一蛋疼的就是编译很慢,而且在未更改任何代码的时候,点运行任然重新编译。 昨天 Google 了一下,找到以下两个讨论:http://www.reddit.com/r/androiddev/comments/1k3nb3/gradle_and_android_studio_
android studio 编译运行报错:
Cannot reload AVD list: cvc-enumeration-valid: Value ‘280dpi’ is not facet-valid with respect to enumeration ‘[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]’. It must be a value from
android studio编译异常解决
新导入的一个项目,编译一直报这个错误,后来发现是这里和文件的build文件不一样,改成一样就可以了
Android Studio 编译慢
Android Studio Gradle Build Runing很慢 10分钟以上 百度上的都试了 没有用 还 有什么好的解决方法吗
android studio 编译错误解决
android studio 导入工程时编译时报错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate e
Android Studio 编译错误整理
Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/usr/lib/jvm/java
Android Studio编译常见错误
Android Gradle Build Error:Some file crunching failed, see logs for details解决办法 在主工程文件夹下的build点gradle文件里,加两句: aaptOptions点cruncherEnabled = false aaptOptions点useNewCruncher = false 例如: ...
Android Studio 编译系统源码
环境配置 & 下载 参考文章 官方文档 湫水blog 清华镜像 调试 以下所有操作在mac上进行推荐下载 7.0及以上系统!!! 1.创建磁盘映像(80G)$ hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 80g ~/android.dmg 2.安装MacPorts (类似brew
Android studio 更新只显示"Download”的解决办法
问题描述: 可能各位在更新AndroidStudio的时候会遇到这个问题。 就是点击Check for Update的时候本来应该显示为update的地方只是显示Download,只能重新下载完整的并安装。 在http://blog.csdn.net/hil2000/article/details/11395485这篇文章中讲了如何手动下载增量更新包的问题,但是我的问题是我用此文
Android Studio真机测试安装时报解析错误
最近才开始使用AS,玩不转啊,今天遇到一个小问题,就是真机测试的时候报解析包错误,后来才发现很简单的问题,是minSdkVerson大于真机的版本号的问题,所以把这个改小一点就可以了。和大家分享一下,以免大家遇到!
where to download Character Studio?
1.Character Studio的版本有FULL和for 3dmax的区别吗?rnrn2.Character Studio 2.0安装文件有多少KB?rnrn3.哪里下Character Studio 2.0/ 3.0?rn不要告诉我下面的,我下了好像不太对,用倒是可用rnhttp://3dsmax.topcities.com/rnhttp://blueworm.myrice.com/bigsoft.html#maxrnrn谢谢
Android studio出现了Could not find method estImplementation()
Could not find method estImplementation() for arguments [junit:junit:4.12] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.[img=https://img-bbs.csdn.net/upload/201904/21/1555776535_535887.png][/img][img=https://img-bbs.csdn.net/upload/201904/21/1555776547_995414.png][/img]
Download - Android
Android Studio 0.5.2 + gradle 1.11 开发, 下载图片功能.
android download
android download
yii2的js 压缩工具 compiler.jar
jsCompressor 和 cssCompressor 选项指定控制台命令或PHP回调函数来执行 JavaScript 和 CSS 合并和压缩, Yii 默认使用 Closure Compiler 来合并 JavaScript 文件, 使用 YUI Compressor 来合并 CSS 文件
一个Android studio 编译的问题
编译问题 Minimum supported Gradle version is 2.14.1. Current version is 2.10.
android studio编译C++问题
筒子们,请教个问题rn我的环境是ubunt, Android Studio,现在要写个带native的应用rnrn我的C++代码中有这么一句:rn#include rn在Application.mk中有这么一句rnAPP_STL := gnustl_staticrnrn然后在命令行模式下运行ndk-build,能正常编译通过并生成好相关的.so到对应的目录下去rn然后用Android Studio编译生成apk,就报如下错误,请教各位,有什么解决办法么?谢谢先rnrnIn file included from /home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/src/main/jni/SoundStretch/main.cpp:43:0:rn/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/src/main/jni/SoundStretch/RunParameters.h:43:18: fatal error: string: No such file or directoryrncompilation terminated.rnmake: *** [/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/build/ndk/arm/debug/obj/local/armeabi/objs/MusicToolbox//home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/src/main/jni/SoundStretch/main.o] Error 1rnrnFAILURE: Build failed with an exception.rnrn* What went wrong:rnExecution failed for task ':MusicToolbox:compileArmDebugNdk'.rn> com.android.ide.common.internal.LoggedErrorException: Failed to run command:rn /home/leo/android-ndk-r9c/ndk-build NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/build/ndk/arm/debug/Android.mk APP_PLATFORM=android-19 NDK_OUT=/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/build/ndk/arm/debug/obj NDK_LIBS_OUT=/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/build/ndk/arm/debug/lib APP_ABI=armeabirn Error Code:rn 2rn Output:rn In file included from /home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/src/main/jni/SoundStretch/main.cpp:43:0:rn [color=#FF0000]/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/src/main/jni/SoundStretch/RunParameters.h:43:18: fatal error: string: No such file or directory[/color]rn compilation terminated.rn make: *** [/home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/build/ndk/arm/debug/obj/local/armeabi/objs/MusicToolbox//home/leo/source/ics_apple/packages/apps/MusicToolbox/MusicToolbox/src/main/jni/SoundStretch/main.o] Error 1rnrnrn* Try:rnRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.rn
Android Studio一直编译卡住!
网上大部分都是说网络问题,改成离线模式,设置代理等等! 而我这个不是啊..之前一直编译好好的,就是加了段代码做下测试,结果就编译不过去了,关键这个代码就是一个类,哪都没调用,还好代码不多一点一点找,发现原来是一个死循环导致的 代码是 while (true){ OutputStream out = mSocket.getOutputStream(); InputStr...
编译FFmpeg到Android studio中
编译FFmpeg并整合到android studio中。
Android Studio编译提速方法
在没有提速前,用AS编译的时候,快的时候是十几秒,慢的的时候甚至要五六分钟,这个漫长的等待时间,对于每一个程序员来说是都是不可容忍的吧.当时以为是电脑配置低,后来上网查了一下,果然有大神对此有研究过,通过大神的文章,加上我自己的研究测试,终于解决了as编译时间等待过长的问题,现在我的项目编译耗时,快则五秒以内,最慢也是十秒.下面就分享一下我的方法,我使用的是AS 1.3 rc版本,不过相信后来的版
Android Studio 编译提示错误
1.解决 Android Studio 提示Untrusted Server's certificate 证书不可用( Server's certificate is not trusted )    如果有翻译软件之类的xx-net,GoAgent之类的,打开google会发现google提示证书由GoAgent颁发给google,会导致android studio 在gradle编译时提示证...
Android Studio某些编译错误处理
Studio 有时候真的很奇怪,明明项目几天前都运行好好的,某天等你再次打开运行,就会出现特殊错误。现总结一些错误现象,减少开发人员不必要的时间浪费。 第一个错误: Error:Failed to resolve: annotationProcessor 如果你百度,你会发现大家说和butterknife 或者是apt等有问题,然后叫你更新google仓库。这种方案我试验过,但是往往都不凑效,请仔...
Android studio导入项目无法编译
![图片说明](https://img-ask.csdn.net/upload/201603/14/1457936309_129689.jpg)nproject里项目是这样的,Android里是空的,![图片说明](https://img-ask.csdn.net/upload/201603/14/1457936430_71065.jpg)
android studio 编译问题汇总
1,Timed out while waiting for slave aapt process, try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds 把一个32位机器下的项目导入到64位android studio中运行时报这个错,进程里面出现很多aapt.exe,原来的a
Android Studio 闪电编译设置
Android Studio Run的图标上出现了闪电的小脚标,如何去掉? 解决: 在Studio面板第二行的菜单栏上选择Settings,在Settings面板左侧的菜单栏里点击“Instant Run”,在右侧的内容里会看到默认勾选的几个选项。勾掉第一个“Enable Instant Run to hot swap code...”即可。
android studio编译运行报错(一)
android studio 编译 运行 报错
android studio编译工程出错
Gradle sync failed: Could not run build action using Gradle installation '/Applications/Android Studio.app/Contents/gradle/gradle-2.14.1'. Consult IDE log for more details (Help | Show Log) 首次在mac下使用
[Android Studio]真机编译闪退
本人AS入坑三天,小白一枚,还请大佬多多指导请教!rn报错如下:rn06-01 18:51:19.089 1798-2137/? E/NtpTrustedTime: forceRefresh failed to get a suitable ntp time from all ntp servers.rn06-01 18:51:19.091 2733-2746/? E/IColorServiceImpl: Native returned is supportedrn06-01 18:51:19.105 2553-2553/? E/ApnSwitcher: airplaneModeOn = falsern06-01 18:51:19.127 2553-2553/? E/OfflineSwitcher: airplaneModeOn = falsern06-01 18:51:19.239 22908-22908/? E/libmdmdetect: Failed to open /sys/bus/msm_subsys/devices/subsys0/name: Permission deniedrn06-01 18:51:19.392 617-3071/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 onlyrn06-01 18:51:19.401 1798-2023/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity/5rn06-01 18:51:19.405 1798-2023/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity/5rn06-01 18:51:19.447 1798-3077/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity/5rn06-01 18:51:19.460 1798-1832/? E/touchscreen: Open /sys/touchscreen/app_name failedrn06-01 18:51:19.466 2775-5316/? E/ProxCoverNoticeService: monitor view is null, no need to update minimumrn06-01 18:51:19.614 15961-22974/? E/AppStore.AppstoreProvider: delete failed PACKAGE_REPLACErn06-01 18:51:19.648 15961-22977/? E/AppStore.Wave: keyUrl is emptyrn06-01 18:51:19.665 22819-22819/? E/AccountInfoService: ------onStart() enter-------intent:Intent act=com.bbk.account.aidlService pkg=com.bbk.account falsern06-01 18:51:19.688 1798-3021/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.bbk.account/com.bbk.account.activity.AccountVerifyActivity/4101rn06-01 18:51:19.691 1798-3021/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.bbk.account/com.bbk.account.activity.AccountVerifyActivity/4101rn06-01 18:51:19.694 1798-2168/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.bbk.account/com.bbk.account.activity.AccountVerifyActivity/4101rn06-01 18:51:19.707 1798-1832/? E/touchscreen: Open /sys/touchscreen/app_name failedrn06-01 18:51:19.714 2775-3683/? E/ProxCoverNoticeService: monitor view is null, no need to update minimumrn06-01 18:51:19.918 3302-4094/? E/VivoPush.SyncItem: (3302)appVersion is nullrn06-01 18:51:19.926 3289-3289/? E/VivoPush.Utility: (3289)illegality abe adapter : pushPkg = com.vivo.pushservice ; srcPkg = com.vivo.pushservicern06-01 18:51:19.978 1798-1832/? E/touchscreen: Open /sys/touchscreen/app_name failedrn06-01 18:51:19.985 2775-5510/? E/ProxCoverNoticeService: monitor view is null, no need to update minimumrn06-01 18:51:20.096 23017-23032/? E/DataUtils: cursor is null, lock failed, continue checking for update!rn06-01 18:51:20.101 23017-23032/? E/DataUtils: cursor is null, lock failed, continue checking for update!rn06-01 18:51:20.134 573-574/? E/rpmb_emmc: ----------------------------rpmb_emmc_read-----------------------------rn06-01 18:51:20.143 573-574/? E/rpmb_emmc: ----------------------------rpmb_emmc_read-----------------------------rn06-01 18:51:20.896 617-3071/? E/ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/mmc_host/mmc0/clk_scaling/enable with 1rn
求助,android studio编译问题
这是什么错误,在用android 4.4时出现错误,但在android7.0中编译通过,不知怎么回事![图片](https://img-ask.csdn.net/upload/201704/19/1492612076_318020.png)
Android studio 编译异常信息记录
1、异常信息 Error:Failed to crunch file D:\Englis_installation_directory\AndroidStudio\AndroidWorkSpace\YoukAndroidApp\code\EduYiKeTang\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7
Android studio 编译很慢解决方案
打开file--other settings-->default settings里面有个compiler,compiler里有个build process heap size 这里你可以根据你电脑的配置自己设置一个值,我设置的是1700,然后在下面还有个android compilers 有个maximum heap size这里同样可以自己根据自己的电脑的配置设置,我设置的还是1700,然后在
gradle-3.3-all.zip编译android studio必备
android studio下载gradle编译太慢,经常是因为gradle下载太慢,这里提供gradle-3.3-all下载,比官网快多了!!官网(http://services.gradle.org/distributions/gradle-3.3-all.zip)。
android studio编译运行报错(二)
1.studio编译报错:Error:Conflict with dependency 'com.google.code.findbugs:jsr305' in project如图:解决:    在app的build.gradle的android{}中加上如下代码即可:android{ configurations.all { resolutionStrategy.forc...
android studio编译过程中报错
Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugCompile'.    > Could not find any matches for com.android.support:appcompat-v7
Android Studio 之 Gradle 安装配置和编译
目录目录 前言 Gradle简介 Gradle安装 Gradle构建项目 XYALLappbuildgradle模块gradle配置文件 XYALLbuildgradle整个项目的gradle配置文件 XYALLgradlewrappergradle-wrapperpropertiesgradle版本统一管理文件 settingsgradle项目模块引用配置文件前言由于生产力很大一部分取决于生产工具
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview