Dears, can you help me with my problem as it's my first time using this software, and I wanted to download my application on my phone, but it kept showing some errors. I have read some of the familiar cases but couldn't figure it out. so can you help me, please !
My code, and I've highlighted the error that keeps showing up
This is what appears on my phone when i run the program
This looks OK, debugging always slows down the app, and you will have to wait for a bit. You can go faster using some of the available emulator to test it on your computer. Try genymotion, also you can even try bluestacks.
Related
I am using Android Studio 4.1.1. windows 7. I write in Java. I noticed this feature of the program. Changing something in code, layout or resources. I run the program and see that my changes have not appeared! First comes the thought that I was wrong somewhere. I start looking for an error. I don’t find it. I run the program again and it already works as it should. Now I'm used to it. The larger the program, the more often this happens. To be sure of the result, you have to run the program twice each time, because I'm not sure if this time all the changes took effect. It is very uncomfortable. Tell me why this is happening and how to solve this problem.
Hello, I am getting this error when trying to run my java app in VS Code. I am trying to run an app that works with an instantiable class. This seems to only have started happening today for some reason.
I am a noob and will need some dumbed-down help, please.
I have tried the below links but they haven't helped:
Problem to run chrome debugger in VS Code (This does not work for me)
https://support.apple.com/en-gb/HT208050 (I did this and it doesn't change anything)
This comes up in my VS Code terminal:
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
It is working now after powering off and back on. One of the above two links must have done the job. Sorry, lol.
I have recently started learning android development, and I just built an app that changes color and text based on pushing buttons and gestures. It ran fine on my phone (Yay!), but then on my second run, an error occurred. When hitting the "run" button, an edit configurations window opened up:
I also noticed, that on the side where my project tree should be is this instead:
I don't think there is an issue in the code because it was running fine before, but I would be happy to post the code if needed.
Also
I dont know if this was the reason, but i'll include this anyway, I tried changing the name of my project, but it wouldn't work, but I changed it back. I included this in my question because that's literally the only thing I did before this error occured.
Thank you so much for helping out a fellow programmer, I really appreciate it. I have been looking at many other forums (for some hours) about this topic, but still couldn't trouble shoot this problem. It seems kind of odd that it was working first, and then it just randomly stopped working. I cant wait for your response!
Here is the dropdown for Module:
As you can see, that is the only option.
Are you sure you are opening the project as android gradle project ?
Try to import the program not open it
I'm not sure I understand how this android sample works (NsdChat found in developer.android Tutorials).
My first idea was to run 2 istances of the App (with 2 instances of Eclipse on the same machine) and try make them communicate but, it doesn't seem to work: I can't figure out if registration and discovery buttons works and while trying to send a message from 1 to another the destination App show nothing and the Eclipse console of BOTH istances show "Client sent message:test", why?
Maybe I haven't completely understood how the example works. Can someone explain to me how to execute and understand this sample?
your first idea correct. it's run two instance of the app on two phones.
one register the service.
the other one discover and connect. then you can talk.
the samples(NsdHelper.java) have bugs, you need fix it.
Or you just change SERVICE_TYPE = "_http._tcp." to "_ipp._tcp.", NsdChat can be an printer, you even can print on it from Mac.
I have a question about the Android virtual device(avd)... as what you already know, that you can test your android application through avd in eclipse, and i'm getting a boring repeted thing with that.
each time I want to test my application and when I make a small change to my application, I have to run the avd again and wait for a long time till the application run(switch the device on and wait for the system to boot and then wait for the application to start,this takes approx. 15 sec)... as I said, each time I make whatever change to the program I have to go through these boaring time consuming loop :( ...
So, is there is a way to avoid these issue, and makes the avd run only for the first time and any changes can take effect quickly and only needed to restart the application without needed to stop and run the project again ??
I hope there is a way for that.
When you're done with a debug cycle, do you close the AVD? If you keep the AVD running, it should do exactly what you're describing.
If that doesn't work for you, a look at your application manifest may be needed.
Simply don't quit the emulator. Leave it running, hit Run (or Debug) in Eclipse, and if anything changed, the program will be uploaded to the emulator again.
Don't close the emulator. Keep it running and click debug again, it will run fast since it won't reboot. (The emulator will just re-install the app instead).