Pre-launch reports UiAutomation not connected error - java

when I try to upload my APK to android market I get a pre-launch reports with the following error. It only happens with Samsung galaxy S9.
java.lang.IllegalStateException: UiAutomation not connected!
at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1043)
at android.app.UiAutomation.waitForIdle(UiAutomation.java:647)
at android.support.test.uiautomator.r.a(QueryController.java:36)
at android.support.test.uiautomator.r.c(QueryController.java:32)
at android.support.test.uiautomator.r.a(QueryController.java:9)
at android.support.test.uiautomator.y.g(UiDevice.java:91)
at androidx.test.tools.crawler.platform.uiautomator.UiAutomatorScreenStateBuilder.getCurrentActivity(UiAutomatorScreenStateBuilder.java:39)
at androidx.test.tools.crawler.platform.uiautomator.UiAutomatorStateExtractor.getCurrentActivity(UiAutomatorStateExtractor.java:34)
at androidx.test.tools.crawler.platform.hybrid.HybridStateExtractor.getCurrentActivity(HybridStateExtractor.java:31)
at androidx.test.tools.crawler.controller.remote.RemotePlatform.handlePerformActionMessage(RemotePlatform.java:25)
at androidx.test.tools.crawler.controller.remote.RemotePlatform.access$300(RemotePlatform.java:91)
at androidx.test.tools.crawler.controller.remote.RemotePlatform$ControllerMessageHandler.handleMessage(RemotePlatform.java:8)
I don't think this is related to my code because I run the app without problems in the Android Studio emulator.
Any help with this?
Thanks for your help.

Related

Error while waiting for device: The emulator process for AVD Nexus_5_API_25 was killed

I recently installed android studio. I am running android studio 3.1.4. I am facing an issue in which I have not start android studio emulator. When I start emulator then error occur "Error while waiting for device: The emulator process for AVD Nexus_5_API_25 was killed." and popup shown on screen is "Emulator: Process finished with exit code 1[enter image description here]"
Please see this image
https://i.stack.imgur.com/s7BsP.png
Please resolve this error.
I suggest you give more Detail about this..or follow some video tutorials that will resolve your problem.
I have same issue i follow some tutorials that solved my this issue from start to end.

Enable hardware acceleration for AMD Phenom X4 945 for Android Studio Emulator

I have the error "HAX kernel module is not installed", when I try to start my emulator in Android Studio. I already tried to figure out how to fix that and found out about this guide:
https://superuser.com/questions/331201/vt-x-amd-v-work-around-for-virtualbox
I entered my BIOS, and enabled the option "Secure Virtual Machine Mode", which seems to have fixed the problem for some other people. I still have the error. I also installed the installer availaible here:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement
Which doesn't solve the problem either. Whatelse can I try to get this going?

requires unavailable shared library com.google.android.glass;

I have tried to install and run the compass sample project from
glass developers site.
I get the following error
when try installing on non-rooted devices (nexsus4, galaxy note2):
requires unavailable shared library com.google.android.glass; failing!
I have tried to remove this from the manifest,
but now the apk seems to be installed but nothing is really added to the device
[2014-01-21 15:29:33 - compassApp] Uploading compassApp.apk onto device '4df1250c1d449f4d'
[2014-01-21 15:29:33 - compassApp] Installing compassApp.apk...
[2014-01-21 15:29:46 - compassApp] Success!
[2014-01-21 15:29:46 - compassApp] /compassApp/bin/compassApp.apk installed on device
[2014-01-21 15:29:46 - compassApp] Done!
As far as I know you can't run glassware on a standard Android device.
Hence glassware requires api's found only in Google glass
I found a workaround to run glassware on an Android device. This will add the required api's to your Android device through apk's. Haven't tried it myself.

How do I debug my Android app on Samsung

I am trying to debug my first app. I have a Samsung Galaxy S3 with Android Jelly Bean (I'm a Windows user) and I have installed the latest version of Kies and have installed all required drivers for my device.
Following the steps to debug in the Android Getting Started tutorial, I have not been able to successfully debug my app on my phone or in an emulator.
Actually I don't really care fo the emulator at this point since this app is just a hello world app. I need to see it on my device but I can't and I don't know what I'm doing wrong, if anythin.
When I hit the debug button in Android Studio, and select my Device as the device to debug on from the popup dialog, Android Studio then displays the following error:
Installing myapplication
DEVICE SHELL COMMAND: pm install -r
"/data/local/tmp/myapplication"
pkg: /data/local/tmp/myapplication
Failure [INSTALL_FAILED_INVALID_APK]
I have searched this error but all the solutionts I have seen are telling me to do things I've already done!
How can I debug an app on Samsung GS3 using Android Studio?
Whats your package name ?
You must have one "." at least

Phonegap application throws error running Android ICS 4.0, but works fine on Android 2.3 and below

I have a problem with PhoneGap mobile app running on Android. I am currently using PhoneGap version 1.3.0. And it works perfectly on Android 2.3 and all the lower versions of Android. However, when I try to run it on Android 4.0 - Ice cream sandwich it throws this dialog error:
Application error - A network error occurred. (file:///android_asset/www/index.html#)
In the logcat there is not much relevant info, only this:
chromium - Unknown chromium error: -6
Anybody has any idea why my app works fine on all Android versions except the newest 4.0 ICS ?
Thank you for any help in advance.
IIRC there is a bug in the 3.X versions of Android and it is probably in the 4.0 version as well. Try removing the # from your URL and things should work for you.

Categories

Resources