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

jitpack发布失败问题 #1

Open
zhouphenix opened this issue Mar 25, 2017 · 1 comment
Open

jitpack发布失败问题 #1

zhouphenix opened this issue Mar 25, 2017 · 1 comment

Comments

@zhouphenix
Copy link
Owner

Build starting...
Start: Sat Mar 25 06:58:39 UTC 2017
Git:
1.0.2
commit d46d1c6
Author: phenixBQ
Date: Sat Mar 25 14:54:51 2017 +0800

鍙戝竷101鍑虹幇闂

Run gradle build
Gradle build script

ERROR: Gradle wrapper not found. Please add. Using default gradle to build.

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all


Gradle 3.1

Build time: 2016-09-19 10:53:53 UTC
Revision: 13f38ba699afd86d7cdc4ed8fd7dd3960c0b1f97

Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_101 (Oracle Corporation 25.101-b13)
OS: Linux 4.4.30-mod-std-ipv6-64 amd64

0m0.664s
Getting a list of gradle tasks
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/jitpack/build/app/build.gradle' line: 1

  • What went wrong:
    A problem occurred evaluating project ':app'.

Failed to apply plugin [id 'com.android.application']
Minimum supported Gradle version is 3.3. Current version is 3.1. If using the gradle wrapper, try editing the distributionUrl in /home/jitpack/build/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip

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

WARNING:
Gradle 'install' task not found. Please add the 'maven' or 'android-maven' plugin.
See the documentation and examples: https://jitpack.io/docs/

Adding maven plugin
Found android library build file in swipetorefresh
Running: gradle clean -Pgroup=com.github.zhouphenix -Pversion=1.0.2 install
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all
Gradle version Gradle 3.1

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/jitpack/build/app/build.gradle' line: 1

  • What went wrong:
    A problem occurred evaluating project ':app'.

Failed to apply plugin [id 'com.android.application']
Minimum supported Gradle version is 3.3. Current version is 3.1. If using the gradle wrapper, try editing the distributionUrl in /home/jitpack/build/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip

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

BUILD FAILED

Total time: 0.67 secs
EXIT_CODE=1
2017-03-25T06:58:57.883886487Z
Exit code: 1
No build artifacts found

@zhouphenix
Copy link
Owner Author

【解决】
“ERROR: Gradle wrapper not found. Please add. Using default gradle to build.”
--没有上传gradle/wrapper目录以及gradlew、gradle.bat

"Minimum supported Gradle version is 3.3. Current version is 3.1."
--造成的原因是原来手贱更新了gradle版本,具体对照https://github.com/dcendents/android-maven-gradle-plugin#note-on-releases 修改classpath 'com.github.dcendents:android-maven-gradle-plugin:X.X.X'中的版本设置
中间过程提交了1.0.2版本不成功是因为提交的记录中可能在jitpack上有缓存,gradle版本一直得不到更新造成的,所以直接提交了v1.0.3

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

1 participant