Android Unit Tests - no such property: bootClasspath

前端 未结 3 730
逝去的感伤
逝去的感伤 2021-02-18 22:20

I\'m trying to execute a simple test case for Android following just announced unit testing support - http://tools.android.com/tech-docs/unit-testing-support

After caref

3条回答
  •  攒了一身酷
    2021-02-18 22:34

    That Testing Support feature is experimental. That said maybe there is no quick solution to your issue or might be a bug.

    However, I would dig deeper into this, reading the message: This line Execution failed for task ':app:compileDebugGroovy'. mentions the task, so I would go and figure what that task does. I suppose it's a delivered task. The error being that in that task there is a property missing > No such property: bootClasspath for class: com.android.build.gradle.AppPlugin

    So maybe try to find that task and make sure the bootClasspath property is set for the AppPlugin class.

提交回复
热议问题