org.mozilla.javascript.Scriptable 在 Android Studio 中丢失
org.mozilla.javascript.Scriptable missing in Android Studio
在我将 Android Studio 更新到 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.
我已经尝试了错误的解决方案,但 none 奏效了。
我正在为 Windows 使用 Android Studio 3.4。
Android studio 3.4 缺少 "rhino" 库。这用于处理代理 url 中的 java 脚本。
从 3.3.1 复制 rhino-1.7.10.jar 对我有用。
您也可以更改代理设置不要使用 'proxy url'.
您可以尝试从这里下载 gradle:Gradle 然后转到 File -> Settings -> Build
、Execution
、Deployment ->Build Tools -> Gradle ->Use local gradle
分发然后输入您的 gradle 安装路径。 (例如,~/android-studio/gradle/gradle-5.1.1)
对我有用。 (英语不是我的母语,语法错误在所难免,非常抱歉!)
我也遇到了这个问题,我使用的是大学的 wi-fi(将我置于防火墙之后)。我不得不更改代理,一切顺利。为此,请访问:
- android 工作室中的设置 (ctrl + alt + s)
- 外观与行为
- 系统设置
- HTTP 代理
在我将 Android Studio 更新到 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.
我已经尝试了错误的解决方案,但 none 奏效了。
我正在为 Windows 使用 Android Studio 3.4。
Android studio 3.4 缺少 "rhino" 库。这用于处理代理 url 中的 java 脚本。 从 3.3.1 复制 rhino-1.7.10.jar 对我有用。 您也可以更改代理设置不要使用 'proxy url'.
您可以尝试从这里下载 gradle:Gradle 然后转到 File -> Settings -> Build
、Execution
、Deployment ->Build Tools -> Gradle ->Use local gradle
分发然后输入您的 gradle 安装路径。 (例如,~/android-studio/gradle/gradle-5.1.1)
对我有用。 (英语不是我的母语,语法错误在所难免,非常抱歉!)
我也遇到了这个问题,我使用的是大学的 wi-fi(将我置于防火墙之后)。我不得不更改代理,一切顺利。为此,请访问:
- android 工作室中的设置 (ctrl + alt + s)
- 外观与行为
- 系统设置
- HTTP 代理