0

我创建了一个 hello world 演示并尝试使用以下链接http://www.jiahaoliuliu.com/2015/02/monkey-talk-integration-with-android.html使用猴子谈话创建一个仪表化的 apk

我在 app 模块的 build.gradle 文件中没有发现任何错误下面是我的 build.gradle

apply plugin: 'com.android.application'
apply plugin: 'android-aspectj'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "packagename"
        minSdkVersion 15
        targetSdkVersion 21


    }
    lintOptions {
        checkReleaseBuilds false
    }
    packagingOptions {
            exclude 'META-INF/DEPENDENCIES'
            exclude 'META-INF/NOTICE'
            exclude 'META-INF/LICENSE'
            exclude 'META-INF/LICENSE.txt'
            exclude 'META-INF/NOTICE.txt'
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }

        monkeytalk.initWith(buildTypes.debug)
        monkeytalk {
            applicationIdSuffix ".monkey"
        }

    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:21.0.1'
    //    GCM gradles
    compile 'com.google.android.gms:play-services-gcm:8.4.0'
    //    Map & location
    compile 'com.google.android.gms:play-services-maps:8.4.0'
    compile 'com.google.android.gms:play-services-location:8.4.0'
    //facebook
    compile 'com.facebook.android:facebook-android-sdk:4.9.0'
    compile project(':calenderLib')
    // Dependency for Google + Sign-In
    compile 'com.google.android.gms:play-services-plus:8.4.0'
    // Dependency for Google Sign-In
    compile 'com.google.android.gms:play-services-auth:8.4.0'
    compile 'com.google.guava:guava:18.0'
    compile 'joda-time:joda-time:2.4'
    compile 'com.google.android.gms:play-services-appindexing:8.4.0'
    compile files('monkey-libs/monkeytalk-agent-2.0.10.jar')
    monkeytalkCompile fileTree(dir: 'monkey-libs', include: ['*.jar'])
}

在运行应用程序时,我发现以下错误,

错误:任务“:app:compileDebugJavaWithJavac”执行失败。> 没有这样的属性:类的 bootClasspath:com.android.build.gradle.AppPlugin

我正在使用android studio版本1.5.1和monkey talkmonkeytalk-2.0.10-win64

错误截图

1

4

1 回答 1

0

看这个文件链接

不需要使用

monkeytalkCompile fileTree(dir: 'monkey-libs', include: ['*.jar'])

当我运行项目时,这给了我错误

不需要写

monkeytalk.initWith(buildTypes.debug) monkeytalk { applicationIdSuffix ".monkey" }

就用这个:

 buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

我认为这会有所帮助,如果有人遇到问题,请告诉我。我的构建在monkeytalk IDE上成功运行

于 2016-04-21T06:17:40.477 回答