【发布时间】:2016-04-19 10:26:14
【问题描述】:
我正在尝试按照https://github.com/libpd/pd-for-android 上的说明创建一个 .aar,但是我遇到了一大堆错误。
这些当然很顺利
git clone https://github.com/libpd/pd-for-android.git
cd pd-for-android
git submodule update --init --recursive
在 windows 命令提示符下
C:\Users\New folder\pd-for-android>gradlew PdCore:assembleRelease
错误是
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'pd-for-android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.5.0.
Required by:
:pd-for-android:unspecified
> Could not resolve com.android.tools.build:gradle:1.5.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools
/build/gradle/1.5.0/gradle-1.5.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build
/gradle/1.5.0/gradle-1.5.0.pom'.
> peer not authenticated
> Could not resolve com.github.dcendents:android-maven-gradle-plugin:1.3.
Required by:
:pd-for-android:unspecified
> Could not resolve com.github.dcendents:android-maven-gradle-plugin:1.3.
> Could not get resource 'https://jcenter.bintray.com/com/github/dcende
nts/android-maven-gradle-plugin/1.3/android-maven-gradle-plugin-1.3.pom'.
> Could not HEAD 'https://jcenter.bintray.com/com/github/dcendents/a
ndroid-maven-gradle-plugin/1.3/android-maven-gradle-plugin-1.3.pom'.
> peer not authenticated
> Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4.
Required by:
:pd-for-android:unspecified
> Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4.
> Could not get resource 'https://jcenter.bintray.com/com/jfrog/bintray
/gradle/gradle-bintray-plugin/1.4/gradle-bintray-plugin-1.4.pom'.
> Could not GET 'https://jcenter.bintray.com/com/jfrog/bintray/gradl
e/gradle-bintray-plugin/1.4/gradle-bintray-plugin-1.4.pom'.
> peer not authenticated
* 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: 15.752 secs
我对 maven 没有什么经验,我需要 aar 来完成一个项目
【问题讨论】:
-
您是否在防火墙和/或代理后面?
-
classpath 'com.android.tools.build:gradle:2.0.0-alpha2'怎么样 -
不只是 Windows 防火墙,如果这很重要的话@OrkunKoçyiğit
-
那没用 :( @IntelliJAmiya > 不管问题是什么,我认为这与我正在使用的 gradle 版本无关
-
jcenter中的ssl有问题。检查stackoverflow.com/questions/26675814/…。 @IntelliJAmiya 在我看来,使用 gradle 插件的 alpha 版本并不是一个好习惯。不稳定。
标签: java android maven android-studio github