Gradle로 관리되는 Android 프로젝트의 부트 스트랩입니다.Gradle의 종속성이 누락 되었습니까?
나는 Gradle의 완전한 신참이기 때문에 천천히 준비하고 있습니다. 여기
C:\Users\Daniel\Projects\JustSingIt-Android [feature/no-newrelic +0 ~1 -0]> .\gradlew --info
Starting Build
Settings evaluated using settings file 'C:\Users\Daniel\Projects\JustSingIt- Android\settings.gradle'.
Projects loaded. Root project using build file 'C:\Users\Daniel\Projects\JustSingIt-Android\build.gradle'.
Included projects: [root project 'JustSingIt-Android', project ':JustSingIt']
Evaluating root project 'JustSingIt-Android' using build file 'C:\Users\Daniel\Projects\JustSingIt-Android\build.grad'.
Evaluating project ':JustSingIt' using build file 'C:\Users\Daniel\Projects\JustSingIt-Android\JustSingIt\build.gradl'
Compiling build file 'C:\Users\Daniel\Projects\JustSingIt- Android\JustSingIt\build.gradle' using BuildScriptClasspathiptTransformer.
Compiling build file 'C:\Users\Daniel\Projects\JustSingIt-Android\JustSingIt\build.gradle' using BuildScriptTransform
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed Gradle 2.0
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/android/volley/volley/1.0/volley-1.0.pom]
Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/com/android/volley/volley/1.0/volley-1.0.jar]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/readystatesoftware/android-simpl3r/maven-metadata.xml]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/readystatesoftware/android-simpl3r/]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/readystatesoftware/android-simpl3r/maven-metadata.xml]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/readystatesoftware/android-simpl3r/]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/handmark/pulltorefresh/library/2.1.1/library-2.1.1.pom
Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/com/handmark/pulltorefresh/library/2.1.1/library-2.1.1.ja
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/facebook/android/facebook-sdk/maven-metadata.xml]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/facebook/android/facebook-sdk/]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/facebook/android/facebook-sdk/maven-metadata.xml]
Resource missing. [HTTP GET: http://repo1.maven.org/maven2/com/facebook/android/facebook-sdk/]
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':JustSingIt'.
> Could not resolve all dependencies for configuration ':JustSingIt:_debugCompile'.
> Could not find com.android.volley:volley:1.0.
Required by:
JustSingIt-Android:JustSingIt:unspecified
> Could not find any version that matches com.readystatesoftware:android-simpl3r:1.0+.
Required by:
JustSingIt-Android:JustSingIt:unspecified
> Could not find com.handmark.pulltorefresh:library:2.1.1.
Required by:
JustSingIt-Android:JustSingIt:unspecified
> Could not find any version that matches com.facebook.android:facebook-sdk:0.1+.
Required by:
JustSingIt-Android:JustSingIt:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
그리고 내 Gradle을 파일입니다 :
은 여기 내 Gradle을 래퍼의 출력의
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7+'
classpath 'com.newrelic.agent.android:agent-gradle-plugin:2.433.0'
}
}
apply plugin: 'android'
//apply plugin: 'newrelic'
repositories {
mavenCentral()
mavenLocal()
}
android {
compileSdkVersion 18
buildToolsVersion '19.0.1'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
buildConfigField "boolean", "ACRA_ENABLE", 'true'
buildConfigField "boolean", "API_FAKE_ENABLE", 'true'
}
buildTypes {
stage {
versionName
versionNameSuffix 'S'
debuggable true
packageNameSuffix '.stage'
}
dev {
versionNameSuffix 'D'
debuggable true
packageNameSuffix '.dev'
}
release {
debuggable true
}
}
dependencies {
repositories()
compile fileTree(dir: 'libs', include: '*.jar')
// Google Play Services
compile 'com.google.android.gms:play-services:3.2+'
compile 'com.android.volley:volley:1.0'
compile 'com.squareup:otto:1.3+'
compile('com.google.code.gson:gson:2.2+') {
exclude group: 'org.json'
}
compile 'com.googlecode.libphonenumber:libphonenumber:3.1+'
compile 'ch.acra:acra:4.5+'
compile 'com.squareup.okhttp:okhttp:1.2+'
compile 'com.jakewharton:butterknife:3.0+'
compile 'com.android.support:appcompat-v7:18.0.0'
compile 'com.readystatesoftware:android-simpl3r:1.0+'
// New Relic removed.
// compile 'com.newrelic.agent.android:android-agent:2.433.0'
// compile 'com.origamilabs.library:StaggeredGridView:1.0+'
compile 'net.hockeyapp.android:HockeySDK:3.0.1'
compile("com.handmark.pulltorefresh:library:2.1.1") {
exclude group: 'com.android.support'
}
compile('com.facebook.android:facebook-sdk:0.1+') {
exclude group: 'com.android.support'
}
}
}
어떤 아이디어가? 감사!
편집 : 새로운 문제
OK 그래서 지금 문제는 빌드하는 동안 나는 클래스 경로에서 찾을 수 없습니다 이러한 라이브러리와 관련된 오류를 많이 받고 있어요 (\ gradlew 빌드.). 또한 Amazon AWS SDK를 프로젝트에 수동으로 추가했지만 동일한 오류가 발생합니다. 제대로 설치된 것으로 보이는 유일한 라이브러리는 Facebook입니다.
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7+'
classpath 'com.newrelic.agent.android:agent-gradle-plugin:2.433.0'
}
}
apply plugin: 'android'
//apply plugin: 'newrelic'
repositories {
mavenCentral()
mavenLocal()
}
android {
compileSdkVersion 18
buildToolsVersion '19.0.1'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
buildConfigField "boolean", "ACRA_ENABLE", 'true'
buildConfigField "boolean", "API_FAKE_ENABLE", 'true'
}
buildTypes {
stage {
versionName
versionNameSuffix 'S'
debuggable true
packageNameSuffix '.stage'
}
dev {
versionNameSuffix 'D'
debuggable true
packageNameSuffix '.dev'
}
release {
debuggable true
}
}
dependencies {
repositories()
compile fileTree(dir: 'libs', include: '*.jar')
compile fileTree(dir: 'libraries', include: '*.jar')
compile project(':libraries:facebook')
compile 'com.google.android.gms:play-services:3.2+' // Google Play Services
compile 'com.mcxiaoke.volley:library:1.0+' // <- Volley-Mirror, a mirror of volley,
compile 'com.squareup:otto:1.3+'
compile 'com.googlecode.libphonenumber:libphonenumber:3.1+'
compile 'ch.acra:acra:4.5+'
compile 'com.squareup.okhttp:okhttp:1.2+'
compile 'com.jakewharton:butterknife:3.0+'
compile 'com.android.support:appcompat-v7:18.0.0'
compile 'com.github.manuelpeinado.refreshactionitem:library:1.0+'
compile 'net.hockeyapp.android:HockeySDK:3.0.1'
compile('com.google.code.gson:gson:2.2+') {
exclude group: 'org.json'
}
compile('com.github.chrisbanes.pulltorefresh:parent:2.1+') {
exclude group: 'com.android.support'
}
// New Relic removed.
// compile 'com.newrelic.agent.android:android-agent:2.433.0'
// compile 'com.origamilabs.library:StaggeredGridView:1.0+'
// compile('com.facebook.android:facebook-sdk:0.1+') {
// exclude group: 'com.android.support'
// }
}
}
에서 메이븐 중앙에 게시 : 0.7+ '? 최신은 '0.8+'입니다. –