awslabs / aws-device-farm-gradle-plugin

Gradle plugin for AWS Device Farm.
Apache License 2.0
61 stars 32 forks source link

Failed to apply plugin [id 'devicefarm'] The android or android-library has not been applied yet #10

Closed twilly86 closed 6 years ago

twilly86 commented 8 years ago

I'm getting the following error when trying to setup the device farm gradle plugin.

Failed to apply plugin [id 'devicefarm'] The android or android-library has not been applied yet

Here is an example project where this is failing.

https://github.com/twilly86/AWSDeviceFarmTest

Could you see what I'm doing wrong?

The instructions aren't saying anything about needing the android plugin to get this to work.

coding-yogi commented 8 years ago

Facing the same issue. Did u get any resolution for this?

shivshankark commented 7 years ago

@twilly86 / @aniket-21 , Not sure if you got this old issue resolved. You have to add the content under Configure your plugin.. section to module specific build.gradle file. You would run into this error if the content is added in project's build.gradle file.

The buildscript goes in project's build.gradle while the plugin configuration goes in module's build.gradle.

Hope this helps!!

bradley-curran commented 6 years ago

I've reworded the README.md to hopefully make this easier to understand. Closing.

RWillemsen291180 commented 3 years ago

Still facing the problem. buildscript is in main project's build.gradle and devicefarm plugin is in module's build.gradle. Is there any install needed between?

yavgel commented 3 years ago

having the same problem