Android Studio Emulator Does Not Start App - java

The Emulator launches. However when attempting to run an app, the app does not show up on emulator. I get a message that says "Gradle build finished with 1 error(s). How can I rectify this problem?

Try this: Go to the path C:\Users*ommitted*\.gradle\caches and delete the folder 2.10 and restart Android studio.

Related

android studio wont install app with code android.os.Binder.execTransact(Binder.java:697

After a little of playing with java codes in android studio, suddenly it stopped installing apps on avd. I can have the apk output and install it on my phone(there I get the play protect error of unconfirmed developer ) as I disabled play protect on my avd. I have no idea what the problem is.
every time I try to do that android studio retries to uninstall the app from avd and the app is not on the apps list of avd device the error code is this:
Unknown failure (at android.os.Binder.execTransact(Binder.java:697))
I have done the solution on this post but it didn't help.
this post:https://stackoverflow.com/questions/44202530/error-unknown-failure-at-android-os-binder-exectransactbinder-java565-error
Edit
another error raised:
error pic
the problem was that with the ioutils that i was adding on dependencies some how made compatibility problem with the system cpu (the problem that i didn't have on my android phone)so next time it happens to any one first check your dependencies by going to:
File -> project structure -> dependencies tab
delete any unusually item there that did the trick for me
Note That it may make your app to act abnormally

Android Studio Unexpected Content Storage Modification

I am currently working on a project using Android development Studio. But everytime I try to create an application I keep on getting the error
Java.lang.RuntimeException:java.io.IOException:java.lang.AssertionError: Unexpected Content Storage modification
Try going to "File" > "Invalidate Caches/Restart..."
and then click "Invalidate and Restart" option on the pop-up dialog box.
This method fixed the issue for me.
The issue that was occurring was due to the fact that my wireless connection on my laptop was not good . Once I connected my laptop directly with my router, the issue went away.
Try this:
attrib -r .AndroidStudio\*.* /s
I had the really big issue as I was not able to open a project in Android Studio. Every time I start Android Studio dialog box appears that says:
Cannot load project: java.lang.RuntimeException: java.io.IOException:
java.lang.AssertionError: Unexpected content storage modification
I solved it by doing following steps:
1.Close Android Studio
2.Go to the directory home_dir/.AndroidStudio/system/cache
3.Remove all the files in the cache directory.
4.Then restart IntelliJ

How to run demo "hello world" android app in ubuntu 14.0?

I am new in android development .Actually i am trying to run simple "hellow world" android app in eclipse i am getting error in mainactivity.java so i am not able to run this demo app in eclipse.
so any one can help me please.
console:
[2014-06-11 21:05:51 - adb] Unexpected exception 'Cannot run program "/home/himanshu/Downloads/adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/himanshu/Downloads/adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb'
Thanks
Open the SDK manager and make sure you install all of the SDK relevant files and the emulator relevant files. Look through your SDK manager and tell me if that worked. If you are not sure what to do with the SDK manager once it is opened, comment this, and I will help you out.

Restart Gradle without restarting Android Studio

Restarting Gradle when android studio shows that I have errors fixes them sometimes. Is it possible to restart Gradle without restarting android studio as it takes a while for it to load on my machine.
You can write the following onto the terminal tab in android studio:
gradlew --stop
After it executes successfuly it can take some few seconds to take effect (not more than a minute). The point is that it'll have to end the current task it'll be processing at that moment. If the task is frozen this command won't work.
As you already might know you can find all the tasks being processing at gradle console tab in android studio.

my eclipse install another app instead of mine in emulator

I'm having a problem with my eclipse i have edited my app and it's ready with no error shows but now when i run it into my emulator it runs another app i have in my eclipse so i deleted the app and still i run the application i want in the eclipse and still it shows the old app that i didn't even ask to install it in my emulator so it's installing an app that i don't have at first place in my eclipse i don't know how it is possible i cleaned my project and still the problem is there and changed my emulator still its install the old app for me
uninstall the app from the emulator and check in your run configuration about the running app and try with new emulator
Be sure you have selected in package explorer the app you want to run. Try to unistall the app from the emulator or create a new device on emulator. Hope this help.
Check the Run configuration: Run->Run configuration. Under the Android tab, choose your project. If you run in Debug, you have similar option too.
Another similar case I saw, is that some application was installed, but the name was not updated. Verify the names of your application in both the strings.xml and the Manifest. (If you create a project by duplicating another one, it might be the problem).

Categories

Resources