Android:后端上的google云语言库导致Appenginehance失败
为了在我的应用程序后端使用谷歌云自然语言,我添加了以下Gradle依赖项:Android:后端上的google云语言库导致Appenginehance失败,android,google-app-engine,Android,Google App Engine,为了在我的应用程序后端使用谷歌云自然语言,我添加了以下Gradle依赖项: compile 'com.google.cloud:google-cloud-language:0.9.2-alpha' 这是什么原因,如果加上: 任务“appbackend:appengineEnhance”的执行失败。 增强DataNucleus类时出错 使用--stacktrace、--debug、--info运行时,会给出太多没有线索的输出。 请感谢帮助,因为我在文档中找不到关于如何使用appengine正确处
compile 'com.google.cloud:google-cloud-language:0.9.2-alpha'
这是什么原因,如果加上:
任务“appbackend:appengineEnhance”的执行失败。
增强DataNucleus类时出错
使用--stacktrace、--debug、--info运行时,会给出太多没有线索的输出。
请感谢帮助,因为我在文档中找不到关于如何使用appengine正确处理此google cloud api的信息
我的后端的完整渐变如下所示:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.38'
}
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.38'
compile 'com.google.appengine:appengine-endpoints:1.9.38'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.38'
compile 'javax.servlet:servlet-api:2.5'
compile ('com.googlecode.objectify:objectify:5.0.3'){
exclude group: 'com.google.guava'
}
compile 'com.ganyo:gcm-server:1.0.2'
//JBE
compile files('libs/java-json.jar')
compile files('libs/jersey-server-1.1.5.jar') //what is that?
compile files('libs/org.apache.commons.httpclient_3.1.0.v201012070820.jar')
compile files('libs/google-api-services-sqladmin-v1beta1-rev9-1.15.0-rc.jar')
compile 'org.ow2.asm:asm:4.0'
compile 'org.datanucleus:datanucleus-api-jpa:3.1.3'
compile 'org.datanucleus:datanucleus-api-jdo:3.1.3'
compile 'com.google.appengine.orm:datanucleus-appengine:2.1.2'
compile 'org.datanucleus:datanucleus-core:3.1.3'
compile 'org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.0'
// compile ('javax.jdo:jdo-api:3.0.1')
// compile 'javax.transaction:jta:1.1'
//cloud storage
compile 'com.google.appengine.tools:appengine-gcs-client:0.4.4'
//Google Cloud Natural Language API
compile 'com.google.cloud:google-cloud-language:0.9.2-alpha'
//compile 'com.google.apis:google-api-services-language:v1-rev373-1.22.0'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
enhancer {
version = "v2"
api="jpa"
enhanceOnBuild = true
}
}
像往常一样,我觉得google api文档很混乱: 介绍谷歌云API,其中包括谷歌云自然语言API,让您可以在应用程序引擎上使用它 注释“…如果您在Google App Engine或Compute Engine上运行,则会自动检测私钥…” 但是在java文档示例中 请注意:“注意,应用程序引擎标准不支持自然语言客户端。” 所以希望它是暂时的,因为这些库的当前alpha状态