2
私はhereのチュートリアルに従ってFirebaseとGoogle App EngineでAndroidアプリをセットアップしました。私はGoogleのApp Engineのモジュールを追加するまで、すべてがうまくいきました、その後、次のエラーがGradleのビルド中に発生しました:Gradle syncが失敗しました: 'backend:appengineSdk'にはファイルが1つしか含まれていませんが、ファイルはありません。
Gradle sync failed: Expected configuration ':backend:appengineSdk' to contain exactly one file, however, it contains no files.
誰もが任意のアイデアがありますか?このタイプのエラーの参照はなく、私は紛失しています!
マイプロジェクトのGradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
マイアプリのGradleの:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.joelmin.sharemon"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.firebase:firebase-client-android:2.5.2'
}
のApp EngineのGradle:
// If you would like more information on the gradle-appengine-plugin please refer to the github page
// https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.28'
}
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
}
私はappengineSdkが正しくダウンロードされていないと思います。 – USKMobility
もう一度ダウンロードしますか?私はそれをgradleの依存関係として追加しました.Android Studioはそれだけでそれをダウンロードします... –
btw〜/ .gradle/cachesで正しくダウンロードされています。 –