android - Create a default AVD with maven? -
is possible create android virtual device maven? because right 1 has create avd manually before running maven build instrumentation tests.
i searched web, find information. android-maven-plugin isn't able it.
thanks yorkw, found solution.
note:
- the ant task works windows, adjusted other os.
- the chosen android target important, because targets require user interaction create avd:
managing avds command line: "if target selected standard android system image ("type: platform"), android tool next asks whether want create custom hardware profile."
pom.xml
<plugin> <artifactid>maven-antrun-plugin</artifactid> <configuration> <tasks> <exec executable="cmd.exe"> <arg value='/c ${env.android_home}\tools\android create avd --name mydefaultavd --target "google inc.:google apis:10" --force'/> </exec> </tasks> </configuration> <executions> <execution> <id>createdefaultavd</id> <phase>generate-test-resources</phase> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
Comments
Post a Comment