Car*_*ton 2 android gradle android-studio
我在启动Android studio时遇到此错误:
Error:Unable to find method 'org.gradle.api.tasks.Sync.getInputs()Lorg/gradle/api/internal/TaskInputsInternal;'.
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.
Run Code Online (Sandbox Code Playgroud)
我正在使用Android Studio Canary 2.3并且继承我的gradle版本:
classpath 'com.android.tools.build:gradle:2.3.0-alpha3'
Run Code Online (Sandbox Code Playgroud)
我尝试了建议的解决方案,但没有一个工作.有关如何解决的任何建议?
Loo*_*g_T 12
检查您的gradle版本gradle --version.Gradle 2.14.1不再工作了.
我将其更新为3.2.1,这对我有用.
你可以从gradle.org获得最新的gradle.或者gradle-wrapper.properties如果使用包装器,请更改您的版本.
| 归档时间: |
|
| 查看次数: |
2285 次 |
| 最近记录: |