Has anyone encountered a problem when updating AndroidStudio to 4.1? the debugger began to work worse: it skips breakpoints, you need to attach several times, on the contrary, it slows down in unnecessary places.
AndroidStudio EventLog:
Evaluate doesn't work:
I had loads of issues with the new android 4.1 update I then updated the version to Android Studio 4.1 RC 2 and the issues stopped. https://developer.android.com/studio/archive the link to the download is there give it a try if it don't work just go back to 4.0
Im facing same issues with 4.1 debugger. Performanse is terrible, most of the time it just does not work at all and I have to reattach it again and again.
Related
Android Studio can't start the debugger if I use C code though JNI.
Running it normally works well, but the debugger doesn't even start, regardless if I'm debugging Kotlin or C code.
It throws a message Debugger process finished with exit code 127. Rerun 'app'
And the only detail it gave me is com.intellij.execution.ExecutionFinishedException: Execution finished.
Here I set up a simple github repository to replicate the error: https://github.com/perojas3/Android-JNI-debug-bug-example. It simply calls C code to get a string and then displays it in a toast.
And here I set up an small youtube video displaying the bug the way it is happening: https://youtu.be/8jIL5yqP7m8
I'm using Manjaro Linux right now.
I had the same issue and installing libncurses5 package solved it.
If using Ubuntu: sudo apt install libncurses5 and launch the debugger again (no android studio restart required).
I also had this issue.
I was able to run and debug my code normally, but for some reason I started to get this crash while running on debugging mode:
Debugger process finished with exit code 127
After playing a lot with Android Studio's settings and Edit Configurations, clearing caches, restarting both Android Studio and the computer and many other things, nothing was helpful.
I struggled with it a lot and the fact that there're no discussions anywhere about it annoyed me a lot, so having no information online together with the previous feeling about it happening after upgrading to Android Studio 4.2, made me think maybe it's a new issue raised in Android Studio's new 4.2 version.
So, I decided to download Android Studio 4.1.3 and give it a try. It worked like a magic and I can finally debug my code :)
I have just updated my Android Studio to 3.5 and I am starting to use the new "Apply Changes" feature. I can deploy my apps without problems using AVD, but when I use my smartphone (Galaxy S9+ with Oreo) the process keeps crashing and all the times I have to kill manually the app and click Start.
I've already tried to create a new project, kill all the apps, plug & unplug the USB cable and restart my device. I tried also Invalidate cache/restart and clean project.
This is the error that the IDE gives me:
E/zygote64: Bad JNI version passed to GetEnv: 805372416
E/studio.deploy: Error retrieving JVMTI function table.
Changes were not applied.
We were unable to deploy your changes: MISSING_AGENT_RESPONSES
Thanks for your help
After contacting the Google Team they have opened a new issue, here's the link if you want to stay updated: https://issuetracker.google.com/issues/139942372
UPDATE: Google has marked this issue as fixed, I think that in the next update everything will be fine.
If this is happening with a plain project, my guess is that there is some incompatibility between your device and the "Apply Changes" feature in Android Studio 3.5.
This issue seems to match your symptoms. Keep an eye on it, and with luck this will get fixed in Android Studio 3.5.1, either by fixing the IDE or at least detecting that "Apply Changes" will not work and reacting better.
I've installed Android Studio 2.3 rc1 and my app doesn't run. Only the Splash screen activity that I've setted up is shown, and then the app crashes.
The big problem is that the log is empty, shows only "Connected to process..." and "Application terminated".
How can I solve this? Is it normal for non-stable version of Android Studio (I'm a noob) or it's a problem of my app?
Edit 1: I've tried to create a new simple project but the result is the same. So maybe the problem is the IDE.
Edit 2 (partially solved): During operation on Edit 1, I've tried a code sample from My App, not an entirely new project, the problem was exactly in that code XD.
Now I've tried other projects and they work.
Edit 3 (solved): I'm really sorry, I think you can delete this thread. The logcat was not empty. I had exchanged the position of the logcat screen with the run one, and by force of habit, always clicked on it without reading the label that had changed. Forgive the fool.
Android studio allow you to run Stable, Beta and Canary builds at the same time. Try running your app on stable version to find out if this has something to do with the IDE or your app.
When you are running Beta/Canary builds it is always a good idea to keep a stable version in your computer as these releases are not always 100% stable.
Since yesterday, my android studio emulators don't start. It was just after i updated Android Studio Library, i don't know if it is just a coïncidence.
What happens when i press start is:
The emulator command is executed
I see emulator.exe process in windows task manager, but no window is opened
Before that, the emulators started just fine, i had no problems, so it shouldn't be hardware issues.
I tried to launch it from the command line, to see if there were errors, but there's nothing. I also checked android studio's logs but still nothing... I also reinstalled completely android studio with no effects. I also tried to let it run for awhile but nothing appears.
Does anyone have a clue about what could cause this ?
EDIT :
It was a known issue (GPU related) of the SDK Tools 25.1.1 , it has been updated about 5 days later and now it works perfectly.
I had exactly the same issue.
Removing C:Windows\System32\Wbem from system PATH variable helps me:
https://stackoverflow.com/a/36650430/1901621
I've been having an issue with android studio for the past two weeks, it started happening out of the blue, everything was working juts fine until one day it just wouldn't start, it's display an error for me, I tried doing the following since then:
Reinstall the same version on android studio (which is the latest)
Install different versions of android studio
Restore my computer to a previous date in which everything was working fine
Needless to say that all of the above hasn't worked
Would anyone know how to solve this problem ?
Thanks in advance
After failing to find a solution, I just downloaded Intellij IDEA, it's great and has the same interface as android studio, so I'd advise anyone having issues with android studio to use it