Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

這個專案 gradle 版本? #38

Closed
lowfiend opened this issue Aug 28, 2018 · 3 comments
Closed

這個專案 gradle 版本? #38

lowfiend opened this issue Aug 28, 2018 · 3 comments

Comments

@lowfiend
Copy link

我用 gradle-4.6-all 是無法使用的

Parallel execution is an incubating feature.

FAILURE: Build failed with an exception.

  • What went wrong:
    org.gradle.api.internal.artifacts.ivyservice.projectmodule.DefaultProjectPublication.(Lorg/gradle/api/artifacts/ModuleVersionIdentifier;)V

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

CONFIGURE FAILED in 0s
Unable to find method 'org.gradle.api.internal.artifacts.ivyservice.projectmodule.DefaultProjectPublication.(Lorg/gradle/api/artifacts/ModuleVersionIdentifier;)V'.
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.

去查了所用的
android-maven-gradle-plugin:1.5

dcendents/android-maven-gradle-plugin#66
要升級 2.1
但是
升級完會出現

  • Where:
    Script '/Users/loverfiend/Desktop/project/JIMU/jimu-core/installv1.gradle' line: 1

  • What went wrong:
    A problem occurred evaluating script.

Failed to apply plugin [id 'com.github.dcendents.android-maven']
Configuration with name 'api' not found.

所以想問一下這專案gradle本版是使用啥
看起來4.6 跑不起來

@leobert-lan
Copy link
Collaborator

seems like you are using version 4.6 of gradle-wrapper (you can check it in the project-root/gradle/gradle-wrapper.properties).

But i think it is caused by other reason except gradle-wrapper for this issue.

check if there is any network error such as 'sslexception','read time out','could not find host for XXXX'

@lowfiend
Copy link
Author

I appreciate your message.
I downgrade gradle-wrapper 4.6 to 3.3, then it run as well.

@LinHongbo
Copy link

gradle版本:5.1.1->3.3
ndk版本:r18b->r15c
在Android studio 3.4 版本,可以通过编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants