I am trying to debug my android app in eclipse but I am not able to do so.
I know this question is asked many time. I have try almost all things but still cant debug my app.
I have android:debuggable="true" in AndroidManiefest.xml as well as having Category launcher and action main in Android AndroidManiefest.
Kindly Help me.
Thanks in advance.
I resolved a very similar problem by using the DDMS perspective. Once in DDMS, I would start my application on my device. I then selected my application process and clicked the "Debug selected process" button.
Restore to defaults in Run/Debug options.
Related
There seem to be too many bugs which have not been properly documented, regarding android studio. I am trying to run a basic Hello world app, and this error is truly making me give up any more efforts.
What I did:
Open Android studio(also tried running as administrator) and tried to run the default Hello world app on an Android 10 device(Xiaomi). At the start it shows Failed to start monitoring 7D8XXCOJGQQCZLJV(device number). At first I ignored it being a beginner and clicked on the run button. The file was successfully built and the RUN section shows 'Install successfully finished'.
Now for clarity here are some screenshots that will display what happened on my android device after the above steps:
The app seemed to be installed correctly, but whenever I click on the app logo the response I get is really frustrating:
As per the this link I tried to go to the device manager and do some changes, by setting and enabling Xiaomi drivers for Portable devices.
But then windows shows:
If anybody knows how to solve this, please do help me in doing so. It is quite discouraging to experience so many errors, right at the beginning. If somebody could give a working solution then that would really help me in continuing my android journey.
There was just a tiny error that led to this entire problem. This was because I had set the value of android:exported="false" in the main activity, which had to be set to true. Hope that this may help anybody in the future!
set the value of android:exported="true" in the AndroidManifest
In my program's any activity ,I press the home button,and then in desktop press my app's icon,I saw the launch activity,not before activity.What happen on my app?
And I found if I use Android Studio run without sign,the app is run normally.A month ago,I move the codes from eclipse to AS,on eclipse IDE not found this problem.Can anybody help me? Very thx.
Maybe grammar errors,sorry.
EDIT:I found this is an Android bug https://code.google.com/p/android/issues/detail?id=26658
And the solution is https://code.google.com/p/android/issues/detail?id=26658#c14
If you are working on real device, make sure you didn't set the flag
Don't keep activities in Developer options.
On emulator check in running configurations that you launch the default activity.
On manifest check that you do not exclude your activities from recent.
We've following option in Eclipse, which allows us to attach debugger to already running process.
I'm looking for a similar option in Android studio, Can somebody tell me where we've this option ?
Android Studio has this option, the icon looks like this:
Read more about it here
the one that looks like a phone with a bug in the corner
At the debug button in the toolbar. Here debugging with android-studio you have all the info.
The process is basically the same :
Set your breakpoints.
Run your app in debug mode.
Use the debug tool window to check objects info.
Check the logs.
Please see the image below on where to find the icon. A popup window will appear to ask you to which process you want to attach to. Select your app.
My problem is, that I can't seem to deploy my app to my phone (galaxy s4) or the emulator anymore, after adding the AndroidManifest.xml to the project.
I have been working on this app for 1 or 2 days, never had a problem testing it on my phone. I wanted to add the App Icon and change the app display name and found out that it had to be done over the AndroidManifest.xml file. So after finally finding where to add it in the QtCreator, I added an Icon and changed the name. When I click deploy, it loads and then the bar turns red, without ANY error messages or nothing. It just goes red full and then goes away. Even the warnings from build are not even showing.
I hope you guys can help me, this is my first question, so if I forgot any information or asked the question wrong, please let me know :)
You need dirqml2sdk debugger libaries (if your OS is windows). You can download it from here.
i have some problem when i want to Debug my android code. When i go to Debug as/ it says (none applicable). I have set a breakpoint though there's no blue arrow on it. Anyone who knows why this is happening?
Thanks
You should setup your debug configuration. It should know what avd to use to launch your code on. If you're using eclipse this article should help.