当我将Android更新到3.4时,它就再也找不到org.mozilla.javascript.Scriptable了。
在搜索更新时,我会得到以下错误:
java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable当我试图更新Gradle的时候,我得到了这样的信息:
Unable to load class 'org.mozilla.javascript.Scriptable'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.我已经从错误中尝试了解决方案,但是没有一个有效。
我在Windows上使用AndroidStudio3.4。
发布于 2019-04-30 11:18:13
安卓工作室3.4缺乏“犀牛”库。它用于处理代理url中的java脚本。复制犀牛-1.7.10.jar从3.3.1为我工作。另外,您还可以更改代理设置,不要使用'proxy url‘。
发布于 2019-06-07 10:41:02
我也遇到了这个问题,我使用的是大学的wi(把我放在防火墙后面)。我必须改变代理,一切都很顺利。要做到这一点,请访问:
发布于 2019-05-03 03:04:45
您可以尝试从这里下载gradle:Gradle然后转到File -> Settings -> Build、Execution、Deployment ->Build Tools -> Gradle ->Use local gradle发行版,然后输入您的gradle安装路径。(例如,~//gradle/gradle-5.1.1)
对我来说很管用。(英语不是我的母语,语法错误是不可避免的,我很抱歉!)
https://stackoverflow.com/questions/55862349
复制相似问题