android应用程序具有依赖项:com.googlecode.objectify
构建项目时引发以下错误:
com.android.builder.dexing.DexArchiveBuilderException: Failed to process /home/homecomp/.gradle/caches/modules-2/files-2.1/com.googlecode.objectify/objectify/5.1.16/148ca59a5f89b394eb998ce1894d222c7e11131d/objectify-5.1.16.jar
这是完整的build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.homecomp.myapplication"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.googlecode.objectify:objectify:5.1.16'
}
答案 0 :(得分:0)
如果Google App Engine SDK(Objectify依赖)可以在Android上运行,我会感到非常惊讶。如果这样做的话,肯定需要使用Remote API。
您可以尝试Objectify6,它使用较新的Google SDK和基于REST的API,并且更有可能在Android上运行。您应该检查。
那是说...直接从移动应用访问您的数据存储区?听起来是个糟糕的主意。