NishantKashyap
asked on
Amazon Device Farm issue:: Failed to apply plugin [id 'devicefarm'] The android or android-library has not been applied yet
I am trying to setup amazon device farm gradle plugin , I followed the step mentioned in the doc:-
http://docs.aws.amazon.com/devicefarm/latest/developerguide/aws-device-farm-gradle-plugin-setting-up.html
I get this error while doing 'gradle clean' or running any gradle command :-
My build.gradle file
http://docs.aws.amazon.com/devicefarm/latest/developerguide/aws-device-farm-gradle-plugin-setting-up.html
I get this error while doing 'gradle clean' or running any gradle command :-
* What went wrong:
A problem occurred evaluating root project 'web_ui_automation'.
> Failed to apply plugin [id 'devicefarm']
> The android or android-library has not been applied yet
My build.gradle file
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'devicefarm'
repositories {
mavenLocal()
mavenCentral()
maven {
< Download jar from S3 for my project>
}
}
dependencies {
<<<<< MY dependencies for the project >>>>>
compile 'com.amazonaws:aws-devicefarm-gradle-plugin:1.2'
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.amazonaws:aws-devicefarm-gradle-plugin:1.2'
}
}
test {
useTestNG {
suites 'src/test/resources/testng.xml'
listeners << 'org.testng.reporters.EmailableReporter'
}
afterTest { desc, result ->
println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
testLogging {
events "passed", "skipped", "failed"
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER