Jump to content

stuck with android developement, need some basic help

[2013-08-01 02:20:41 - WifiComputerMicrophone] Android Launch![2013-08-01 02:20:41 - WifiComputerMicrophone] adb is running normally.[2013-08-01 02:20:41 - WifiComputerMicrophone] WifiComputerMicrophone does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml[2013-08-01 02:20:52 - WifiComputerMicrophone] ------------------------------[2013-08-01 02:20:52 - WifiComputerMicrophone] Android Launch![2013-08-01 02:20:52 - WifiComputerMicrophone] adb is running normally.[2013-08-01 02:20:52 - WifiComputerMicrophone] Performing android.test.InstrumentationTestRunner JUnit launch[2013-08-01 02:20:55 - WifiComputerMicrophone] Uploading WifiComputerMicrophone.apk onto device 'HT35MW910074'[2013-08-01 02:20:55 - WifiComputerMicrophone] Installing WifiComputerMicrophone.apk...[2013-08-01 02:20:57 - WifiComputerMicrophone] Success![2013-08-01 02:20:58 - WifiComputerMicrophone] Launching instrumentation android.test.InstrumentationTestRunner on HT35MW910074[2013-08-01 02:20:58 - WifiComputerMicrophone] Failed to launch test

running my app gives me this in my console, dont know how to fix it

Energy can not be created nor destroyed, just converted to a different Type of energy.
My blog: T3Krant.blogspot.com

Link to post
Share on other sites

I think its best to ask people at XDA Developers. They are android experts when it comes to these.

| CPU: INTEL i5 6600k @ 4.6Ghz @ 1.328v | Motherboard: ASUS Z170-AR | Ram: G.SKILL 2x8GB 2400Mhz | CPU Cooler : Corsair H100i V2

| GPU: GIGABYTE GTX980Ti G1 GAMING | SSD: SAMSUNG 840 EVO 250GB  Storage: WD 1TB GREEN | OS: Windows 10 Pro 64bit | PSU: FSP 650W AURUM S |

<<<<< BLK-Phant0m >>>>>

 

Link to post
Share on other sites

Looks like you are trying to launch JUnit tests? I believe you need to specify these libraries in the AndroidManifest.xml (as the error message is indicating) for your project:

<instrumentation android:name="android.test.InstrumentationTestRunner"    android:targetPackage="your.package"    android:label="your tests label" />

and 

<uses-library android:name="android.test.runner" />

in the appropriate places.

| CPU: 2600K @ 4.5 GHz 1.325V | MB: ASUS P8Z68-V pro | GPU: EVGA GTX 480 clk 865/mem 2100 | RAM: Corsair Vengeance 1600 MHz CL9 | HDD: Muskin Chronos Deluxe 240GB(win8) && ADATA SX900 120 GB(ubuntu 12.04) | PSU: Seasonic x760 |

Link to post
Share on other sites

[2013-08-01 09:54:05 - WifiComputerMicrophone] ------------------------------[2013-08-01 09:54:05 - WifiComputerMicrophone] Android Launch![2013-08-01 09:54:05 - WifiComputerMicrophone] adb is running normally.[2013-08-01 09:54:05 - WifiComputerMicrophone] Performing android.test.InstrumentationTestRunner JUnit launch[2013-08-01 09:54:06 - WifiComputerMicrophone] Uploading WifiComputerMicrophone.apk onto device 'HT35MW910074'[2013-08-01 09:54:06 - WifiComputerMicrophone] Installing WifiComputerMicrophone.apk...[2013-08-01 09:54:08 - WifiComputerMicrophone] Success![2013-08-01 09:54:08 - WifiComputerMicrophone] Launching instrumentation android.test.InstrumentationTestRunner on HT35MW910074[2013-08-01 09:54:08 - WifiComputerMicrophone] Failed to launch test

still getting this error: Failed to launch test

Energy can not be created nor destroyed, just converted to a different Type of energy.
My blog: T3Krant.blogspot.com

Link to post
Share on other sites

I am not trying to launch Junit tests, im trying to get android debug working, because the VM does not load. I may very well be doing this wrong. What does this test do?

Energy can not be created nor destroyed, just converted to a different Type of energy.
My blog: T3Krant.blogspot.com

Link to post
Share on other sites

Junit is an eclipse plugin used for unit tests. If you do not know what it is, then my guess is you are not correctly launching your android project. Have you set up an AVD? When you run/debug, do you get prompted with a list of potential devices? What are you debug/run configurations?

| CPU: 2600K @ 4.5 GHz 1.325V | MB: ASUS P8Z68-V pro | GPU: EVGA GTX 480 clk 865/mem 2100 | RAM: Corsair Vengeance 1600 MHz CL9 | HDD: Muskin Chronos Deluxe 240GB(win8) && ADATA SX900 120 GB(ubuntu 12.04) | PSU: Seasonic x760 |

Link to post
Share on other sites

I got it to open the app on my phone. how do I add messages to my code that show in the LogCat so that i can tell what my app is doing

Energy can not be created nor destroyed, just converted to a different Type of energy.
My blog: T3Krant.blogspot.com

Link to post
Share on other sites

I got it to open the app on my phone. how do I add messages to my code that show in the LogCat so that i can tell what my app is doing

 

If you want to see messages in LogCat, you can either use System.out.println() or the built in android Log class.

| CPU: 2600K @ 4.5 GHz 1.325V | MB: ASUS P8Z68-V pro | GPU: EVGA GTX 480 clk 865/mem 2100 | RAM: Corsair Vengeance 1600 MHz CL9 | HDD: Muskin Chronos Deluxe 240GB(win8) && ADATA SX900 120 GB(ubuntu 12.04) | PSU: Seasonic x760 |

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×