• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android studio AVD question

 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Got a small question I weird enough can't seem to find the answer for....

I am starting up in Android Studio. I created a project and ran it on a AVD. Than I deleted the app on the AVD (don't ask me why:P).

And now...I can't seem to get the project back installed? In Eclipse it would just automatically install the project again when it was not there....

Any clue on how to get my project back on the AVD?

Thanks in advance!
 
David Griffiths
Author
Ranch Hand
Posts: 45
5
Android Python Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you re-run the app in the IDE, do you see the AVD list in the set of running devices? If not, you should kill the adb-server process and try again.
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Thanks for your reply!

It does show up in the list of running devices.

I swiped the data. Also tried making a whole new device.

Sadly on relaunch it still does not reinstall the app. I understand it normally should do so?
 
David Griffiths
Author
Ranch Hand
Posts: 45
5
Android Python Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should. Do you get any errors in the logcat window?
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Errr a lot it seems (and these are only the errors). I feel stupid but I do not know what to look for. Needle in a haystack for me, I must admit. Any clue? Personaly I am thinking admin rights or server reset (although I do not know where in android studio I d need to reset the server;) (As context, I am an ICT student who is trying some android for funn and to learn how it all works...arrgh;)) --> sorry to post my bulk like this :S

Edit: I did connect a real android device a while back...might it be pointing to the wrong location? Since e/ is non-existent?


 
David Griffiths
Author
Ranch Hand
Posts: 45
5
Android Python Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like a memory error. Did you create the AVD with a very small amount of memory?
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the defaults....

But its is correct that it points to E/ ?

I tried a device with more mem...no luck...I think I ll give up for a bit. Think it over :P Maybe reinstall studio...or go back to eclipse for now:S

 
David Griffiths
Author
Ranch Hand
Posts: 45
5
Android Python Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"E/" means that the log line refers to an error.
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, So I reinstalled Android Studio. Remade the app and tried running it again. Result remains the same, Android studio does not push the apk I am developing to the Emulator. Slowly driving me nuts now:/

Thus therefor this reopen...anyone got any idea why it refuses to push my project to the emulator? And if this cannot be solved...is there another way for me to get my file on the emulator? (aargh)

Stacktrace (errors only):


Event Log:




message gradle build:
 
David Griffiths
Author
Ranch Hand
Posts: 45
5
Android Python Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That really looks like the AVD is having problems before you do the deploy. Lots of "No permission" issues, and then even a stack trace which appears to occur whilst something is being converted from Davlik byte codes to the OAT format used in the Android runtime.

Assuming that there's no underlying problem with the development machine--such as lack of disk space--it really looks like it's not the IDE or the emulator, but the AVD image itself. I don't remember you've already done this but have you tried completely removing the existing AVD image? So remove the AVD itself, and then check that it disappears from <HOME>/.android/avd and then also remove the binary image that it was based on. Then download a new binary image and create a new AVD from it with the default options (so no tweaking storage or memory).
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ty for your reply! I did all you suggested. I also completly reinstalled the SDK.

Made a different (lower android version and default install) simulator in Studio.

Results are about the same...:/

 
David Griffiths
Author
Ranch Hand
Posts: 45
5
Android Python Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it might be this:

http://stackoverflow.com/questions/21926448/android-emulator-error-executing-system-bin-e2fsck-failed-no-such-file-or-di
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the emulator does boot! It starts just fine. I also tried several different API (as mentioned as a solution) and I got a fresh reinstall (newest version a hour ago and the solution states it fixed for newer versions in december:/).

The problem is that the application I am working on does not show up in te overview of apps on the emulator.

THanks you for your efforts though. Maybe I should go to the Android studio site and mail this as a bug issue...
 
Dirk Lucas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOLVED!!!

I found a StackOverflow which solved a similar problem by unchecking "enable ADB Integration".....I did the opposite (I checked it) and now it works! What do you know! Lucky shot!

But really, thank you man, for your help. I would have given up a long time ago if not for your help. So big thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic