GunaSekharM / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Samples: Build doesn't try to start emulator #363

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Prepare to build samples as described at 
https://code.google.com/p/maven-android-plugin/wiki/Samples
(Windows 7 64bit ...)
- don't start any AVD
2. open command console with "cmd" command in the root directory of the samples
3. Run the command:
mvn clean install

What is the expected output?
1. "the build will try to start an emulator named "23" for you"
2. All tests passed

What do you see instead?
-- in the output: ---
...
[INFO] --- android-maven-plugin:3.5.1:internal-pre-integration-test 
(default-internal-pre-integration-test) @ instrumentationtests ---
[INFO] c:\android\android-sdk-windows\platform-tools\aapt.exe [dump, xmltree, 
W:\Android\LearningAndroid\m-a-p-samples\apidemos-android-10\application\target\
application.apk, AndroidManifest.xml]
[INFO] Found 0 devices connected with the Android Debug Bridge
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Android SDK ApiDemos - Parent ..................... SUCCESS [0.123s]
[INFO] Android SDK ApiDemos - Application ................ SUCCESS [10.339s]
[INFO] Android SDK ApiDemos - Instrumentation Test ....... FAILURE [0.780s]
[INFO] HelloFlashlight ................................... SKIPPED
...

What version of maven-android-plugin are you using?
1. Downloaded today automatically. Apparently "android-maven-plugin:3.5.1" 

What are the complete output lines of "mvn -version" on your machine?

---
W:\Android\LearningAndroid\m-a-p-samples>mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 
16:51:28+0300)
Maven home: c:\android\apache-maven-3.0.5
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: c:\PROGRA~2\Java\jdk1.6.0_29\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

---

Please provide any additional information below.
1. This console command successfully starts the "23" emulator:

---
W:\Android\LearningAndroid\m-a-p-samples>emulator -avd 23

---
2. The emulator "23" is of API Level 17, x86 image
3. If I start emulator before running mvn, the above mention step "Android SDK 
ApiDemos - Instrumentation Test" succeeds.

Original issue reported on code.google.com by yvo...@gmail.com on 14 Mar 2013 at 7:58

GoogleCodeExporter commented 9 years ago
Additional information:
1. I recreated AVD "23" as API Level 10 - no difference, still the same 
behavior.
2. I stopped AVD "23" and started AVD with "Default" name. Got this error:
---
...
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Emulator emulator-5554 found.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Android SDK ApiDemos - Parent ..................... SUCCESS [0.130s]
[INFO] Android SDK ApiDemos - Application ................ SUCCESS [10.314s]
[INFO] Android SDK ApiDemos - Instrumentation Test ....... FAILURE [5.036s]
[INFO] HelloFlashlight ................................... SKIPPED
...
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.5.1:internal-pre-integration-test (default-internal-pre-integ
ration-test) on project instrumentationtests: emulator-5554 :   Uninstall of com
.example.android.apis failed. device offline -> [Help 1]
...

Original comment by yvo...@gmail.com on 14 Mar 2013 at 10:51

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:20