My AVD will not run my app - java

I was testing my app in my AVD and the AVD no longer uploads the apk to the device. It used to work and I have reinstalled eclipse and the android SDK but it does'nt run the app. Any Suggestions to get it working???

There is one workaround, but a little bit more work, well for me i think its good, after u run/build on eclipse, there is an apk file in the /bin folder. I used to copy that .apk over there to my microsd and install and reinstall for comparison when you are on the go.

Related

Why does Android Studio have an internal error after installing

I just downloaded and installed Android Studio. I've tried running it, but there's some internal error. I've tried uninstalling, deleting the JDK, and reinstalling, but I'm still having this same problem. I also tried to download the new installer and install it again but same problem happened.
Here's the error:
java.util.concurrent.CompletionExecption:org.picocontainer.PicoRegistrationException:Keyio.flutter.settings.FlutterSettings duplicated
at java.base/util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at...(many more errors)
at...(many more errors)
First of all, I will like to know which OS you are on. But try this;
If you have anti-virus, you want to disable it till after a successful installation because some anti-virus delete some files at installation time because those files are read as treat to your PC.
If you are on MacOS ,then try deleting the marketplace directory which contains plugins.
rm -Rf ~/Library/Application\ Support/AndroidStudio2020.3.1/marketplace/
or
~/Library/Application Support/Google/AndroidStudio202.3.1/plugins
There can be Android Studio under Application Support but that is not the correct one.
If you use Windows then , try the following ways:-
Changing these lines of code
Open the folder where you installed Android Studio:
ex: C:Program FilesAndroidAndroid Studiobin
Find and edit idea.properties. You can edit this with use notepad++ or
any similar application that allows text editing.
Add this line as the final in the file:
disable.android.first.run=true
Now run Android Studio again.
Opening in Offline Mode
Close Android Studio Turn off Internet connection and be sure of it.
Start Android Studio. You will see a popup box with Cancel option in it.
Then Click cancel.
Reinstalling JAVA, PYTHON
Downloading new package of ANDRIOD STUDIO and installing it again after deleting all the previous files
Adding bin directory to the enviornment variables
JAVA PYTHON JRE-AndriodStudio
Deleting the user plugins that we have in Andriod Studio. [But as its my first time of installation, I am not having them]
Even tried restarting my system
Closing all other instances running via java, to ensure it not disturbing that particular port number
But no programmes were running in the process that took the use of java
Windows Credits:- https://ittone.ma/ittone/start-failed-fresh-installation-android-studio/

I can't build and run my app without usb debugging

I'm requesting your help because I've made an app on Android studio, which works fine on my phone with usb debugging.
I tried to build the unsigned apk with gradle but it won't install and my phone says that "the package must be corrupted" when I try to install it. I also managed to install a debug version apk on my friend's phone, it installed but kept on crashing regularly and was unusable.
I probably have wrong settings in my project, but I'm new to this and don't really know what to do.
Thanks for your help
Goto Build Option->Choose Build APK(S) and then generate debug APK and that APK you can install in your device

Android App is not running on other devices

I just made a simple android app with 2 buttons. Each button onClick opens a new activity. I installed the app on my device via USB cable from Android studio and it runs fine on my device.
But here rises the problem, when I installed the app on my friends device after sharing via SHAREit the app installed on his device but did not run.
What could be the reason for this? And how can I solve this?
Please help. Thank you
This issue is most probably due to the Android instant run features. Try the following steps to get this working,
Step 1: From Android Studio, click on Build => Build APK. Once the build is complete, you will see an option to view the APK in explorer. Copy the app-debug.apk to a folder of your choice.
Step 2: Open a command line. Switch to the folder which contains app-debug.apk. Run the following command to install your APK on phone,
adb install -r app-debug.apk
Step 3: From your phone, use Share-it to copy the APK to your friend's phone. Now the app should run.
This is happening sometime, when do some changes in app configuration/ gradle by unknowingly,
DO THIS THING FOR SOULUTION:
Close Project in Android Studio.
Close Android Studio completely.
Rename your Project name.
Open Studio and import Project
Clean and Try to Run

Copy an android app from my phone to my PC

I don't know if what I am going to ask is possible. As a matter of fact, I can see that it would be a bad idea, but I thought I would ask just in case. I have an app on my phone that I have been working on in my lab at school. I am stuck at home now and would like to continue working on the app here at home but all my code is on my computer at school. Is there any way to move the app from my phone to my PC so that I can continue working on the app in eclipse?
Thanks
As Scott says, simply copying the app to your PC will not exactly allow you to develop as though you have the source code in front of you, but if you insist, you'll need root access to get a directory listing of your /data directory, then you'll need to adb pull the file.
You are working on an app in school ? ok, so let me guess. are your using eclipse ide to create that app ? if yes, then you can simply copy the whole project and paste it in your pc and run it there from eclipse.
If it is only an app on your mobile , then you can use BlueStack Placer on your PC
Extract the apk of your app from mobile using an application called apk extractor. It is stored in a predefined folder. Connect your phone to PC , copy that apk n a folder i have described below. It must be in a folder called Apk Extractor.
Now, install BlueStack Player. Basically it is a player to run android apps.
Copy the APK file into the Apps folder, which is created by default in the Libraries folder at the time of BlueStacks installation. Right click on that APK file and open with apk handler.exe which is located in C:\Program Files\blue stack(Your BlueStack installation Location)
Your app has been installed in BlueStack Player. It will show on the home screen of the Player
NOTE :- These instructions are tested and i have run it

Android SDK and Eclipse Virtual device not launching

I have just installed eclipse with the andriod sdk. I have completed all suggested steps. When I attempt to launch the Emulator widows returns emulator arm stopped working can anyone help me with this I cannont test my .apk without it as I do not have an android device.
Have you created a virtual device or the emulator. m guessing u have not.
Start AVD manager,u can find it in the same folder where the 'android sdk manager' resides.
Choose the create new option and create a emulator. This will create the emulator and the applications that you write on eclipse will run on this emulator.
Note : the emulator will take a few moments to run, the first time. So don assume that its not working.

Categories