猴子对话与Android Studio错误:执行失败的任务“:应用程序:compileDebugJava” [英] Monkey Talk with Android Studio Error:Execution failed for task ':app:compileDebugJava'

查看:176
本文介绍了猴子对话与Android Studio错误:执行失败的任务“:应用程序:compileDebugJava”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面这个教程,使 monkeytalk代理建立这样我可以记录事件,并写一些测试用例。我也下载了混帐的项目,正在运行,但不显示猴子通话IDE 并没有事件记录。

我也让我自己的项目,并按照从 1-9 所有步骤。我真实的设备测试,所以我跳过第十步。我现在面临的问题是,当我同步项目gradle这个正确构建,但是当我运行这个项目它给我下面的错误。


  

    

错误:执行失败的任务:应用程序:compileDebugJava。
    没有这样的属性:BOOTCLASSPATH类:com.android.build.gradle.AppPlugin


  

如果任何人有任何的想法,你的帮助是AP preciated。谢谢!


解决方案

尝试很多事情,我终于成功地整合MonkeyTalk剂在我的APK使用Android Studio之后,这里有一些细节步骤,将有很大的帮助。

提示


  • 用于构建的gradle 1.0.0版本,1.2.3虽然可用,但有一些问题与的Gradle版本和monkeytalk客户端代理的apk。


  • 如果您使用的是谷歌播放服务使用7.0.0版本


步骤
对于步骤可以参考这个文件

但这里是我面对下面这个帖子的时候,这里有以下几个问题:


  • 请libs文件夹在你的app文件夹,并把monkeytalk代理-2.0.10.jar那里,在你的应用程序的build.gradle使用本

      {相关性
    编译文件树(包括:['的* .jar'],DIR:库)
    ....
    }


无需使用


  

    

monkeytalkCompile文件树(导演:'猴库,包括:['的* .jar'])


  

这给我,当我运行该项目误差

不需要写


  

    

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


  

只是用这个:

  buildTypes {
        发布 {
            minifyEnabled假
            proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
        }
    }

我认为这会有所帮助,如果任何人都面临的问题请让我知道。我的版本是在monkeytalk IDE

成功运行

I am following this tutorial to make monkeytalk agent build so that i can record the event and write some test cases. I have also downloaded git project with is running but is not showing in monkey talk IDE and no events are recording.

I have also made my own project and follow all the steps from 1 to 9. I am testing it on real device so I skipped 10th step. The issue I am facing is that when I sync the project the gradle is building properly but when I am running the project it give me following error.

Error:Execution failed for task ':app:compileDebugJava'. No such property: bootClasspath for class: com.android.build.gradle.AppPlugin

If anyone have any idea, your help is appreciated. Thanks!!!

解决方案

After try lots of things i at last successfully integrated MonkeyTalk agent in my APK using Android Studio, here are some details steps that would help a lot.

Tip :

  • used gradle build version 1.0.0, although 1.2.3 is available but there are some issues with that version of gradle and the monkeytalk client agent apk.

  • if you are using google play services use 7.0.0 version

Steps : For steps you can refer to this document

but here are few problems that I face when following this post, here are the following :

  • make libs folder in your app folder and put monkeytalk-agent-2.0.10.jar there, in your app build.gradle use this

    dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    ....
    }
    

no need of using

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

this give me error when i am running the project

no need of writing

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

just use this :

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

i think this will help, if anyone is facing problem please let me know. My build is successfully running on monkeytalk IDE

这篇关于猴子对话与Android Studio错误:执行失败的任务“:应用程序:compileDebugJava”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆