Trying to run Enhance on Android Studio

被刻印的时光 ゝ 提交于 2019-12-03 17:18:04

Per @loosebazooka above the answer is to use the v2 enhancer at the link in the comments above.

I also faced this issue - the relevant parts of my build.gradle are shown below. Please note the addition of the api="jdo", without which I continued to get the same error as the OP.

apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'

war.dependsOn appengineEnhance

dependencies {
    appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.14'
    compile 'com.google.appengine:appengine-endpoints:1.9.14'
    compile 'com.google.appengine:appengine-endpoints-deps:1.9.14'
    compile 'com.google.appengine.orm:datanucleus-appengine:2.1.2'
    compile 'javax.servlet:servlet-api:2.5'
    compile 'com.ganyo:gcm-server:1.0.2'
    compile 'javax.jdo:jdo2-api:2.3-eb'
    compile 'org.datanucleus:datanucleus-api-jdo:3.1.3'
}

appengine {
    enhancer {
        version = "v2"
        api="jdo"
        enhanceOnBuild = true
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!