Android studio not recognizing USB Emulator - java

I'm having ENOURMOUS issues with android studio. If it's not rendering issues it's the emulator. (btw Must I have internet connection to use that IDE ? Must I only use SDK setting of SDK actually installed on my machine))
My current problem is that I followed this hello world tutorial https://developer.android.com/training/basics/firstapp/index.html
Then this http://developer.android.com/tools/device.html
My cellphone is ALCATEL TOUCH M'POP 5020D. I want to use it to run my app. So I have enabled it's debugging mode. But Android studio is not detectitng it BUT the phone is in debugging mode. Please what should I do ? Even when I try using an emulator it does not work. (my minimum SDK for the project and emulator is API 19)
Both the emulator and the phone is not working
SDK Extras screenshotS

Try to install the MTK Driver (here is the download link)
And be sure that you enabled development settings and the usb debugging feature under Settings -> About Phone -> Advanced settings.

Related

Why I'm unable to install application in my phone. Redmi 7s Connected already but it's not showing to install application in Android Studio. Why?

Android Studio Not Showing My Phone for Run Application:
I want to run my developed application directly on my phone but I'm unable to run this. Because It's not showing in android studio. It also not working on emulator also. I already ready Google Development Guidelines(https://developer.android.com/studio/run/oem-usb.html). But these are not working for my system.
Have you enabled Developer mode on your phone?
If you haven't done yet follow these steps:
Go to settings -> About phone.
Tap on Build number 7 times and the developer option will be on.
If you have already enabled it then:
Go to Settings and find Developer options.
Check whether it is enabled or not.
Swipe down and find USB debugging. This option should be enabled. (Also enable Wireless ADB debugging if you're running app wirelessly)
Sorry for the late answer
I am also facing this issue couple of month ago, I had checked that I had enabled the USB debugging in developer but there is an issue with the Redmi phones that along with the USB debugging you will need to do the following
Go To Settings > Additional Settings > Developer Options
Enable USB debugging
Enable Install via USB
Disable Turn on MIUI optimization
On Select USB configuration select MIDI or File transfer (this is
what solved the problem for me)
also, keep in mind to give an RSA permission
you also check the link https://developer.android.com/studio/run/device?hl=ro
I have solved my problem on my own. The problem was in Android SDK. I'm using 2 windows in my same pc so I just used android studio on my another window then it's was working perfectly so I thought i have to try with changes that windows Android/Sdk folder in other windows which one I had problem. So I just copy (C:\Users{MyUserName}\AppData\Local\Android\Sdk) in getting the problem window and try again the android studio & Wawu... It's starting working. I hope it's will be helpful for you also.

Android app is not running on other device

i just made a simple android app with 6 buttons. Each button on click 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
You dont need to create a signed APK if you only want to test it on your friends device and not to run it in a production progress. Android Studio creates an apk automatically which is signed for 365 days. Just open your project in your explorer and go to [ProjectName]\app\build\outputs\apk and select the app-debug.apk.
Make sure instance run in android studio is disabled.
Because if Instance run is enabled when you debug the app on real device through usb debugging it will work properly . but if u share the apk from your device to other device it will not work. It might show an error . App Name Unfortunately Stoped.
If Instance run is enable. you must disable the instance run first. If you don't know how to disable it just google it. After disable the instance run, you must clean project and Build new apk. It will work on all the other devices without generating signed apk.
Hope it may help you.
While building the app what MinSDK version you defined? Do both devices satisfy that criteria?
If you suspect that installing through sharing app is a problem then try attaching your friend device to your laptop and try running the app.
Or
Send the apk through email and let your friend download the apk and install the apk through apkInstaller app.
I have a solution for you:
Install Bluestacks Android Emulator.
Go to Tools, Android and click on Enable Adb Integration to disable it.
In android studios one Android Device for Bluestacks will appear while installation.
Share the installed app through shareit.
It will work on other device.
Hope it helps
Here is the link, where you will find your solution. https://developer.android.com/studio/publish/ check the point 'publish your app', In left column.
Simply follow these steps:
Double click on shift and search for build apk and click on it.
Locate that apk file.
Copy to your physical device or your friend's device... whatever, it will work.

ERROR: "The selected device is incompatible" in Android HTC device

I am absolutly new in Android development (I am a Java EE developer) and this is the first time that I use Android Studio.
So I am finding some difficulties to run my HelloWorld application on my HTC One phone.
I have installed the driver of my phone on my Windows 8.1 system (it should be ok because I can correctly see my phone into the Windows Device Manager).
So I open my app into Android Studio and then click on the start button and then I can choose perform the application on my phone but then I obtain the following error message:
The selected device is incompatible
Here a screenshot of the problem:
Why? What is the problem? How is it possibile that my Htc One is incompatible with Android Studio? How can I fix this issue?
Another problem is that if I chose Launch Emulator instead my phisical phone I have not a virtual device. Is is something that have I to instal separatly or what?
Sometimes reasons may be your device is not recognized by Android Studio.
For this to happen do the following:
Settings -> Developer Options -> Revoke USB debugging authorizations.
Select OK and disconnect your phone. Reconnect it, run the app and you should get a popup on your phone asking for authorization with title "Allow this Device..." . Tick the checkbox for future prefrence. and Select Ok.
You have created the app with min SDK version 15 (as mentioned in the snapshot) but your device is working on a lower version of android. You can change the min SDK version from project properties or create a new application project with lower or equal version of android SDK than the android version installed on your device.
The version of SDK, you select, will work on any device having same or higher version of android OS installed.
Gingerbread (version 10) will work on ~90% of the devices.
It seems the minSdkVersion defined in the grade file of your project is higher than the api version of your phone. So you should change minSdkVersion.You can only start a virtual device, if you have previously downloaded a system image and configured the device with AVD Manager.

How to install Google Play Services on 6.0 Genymotion device? [duplicate]

This question already has answers here:
How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
(17 answers)
Closed 5 years ago.
How to install Google Play Services on 6.0 Genymotion device?
For other versions this answer works, but not for 6.0
EDIT:
I've tried to use 6.0 Gapps from this source, but all of them failed to flash the emulator.
Ivan,
I found the solution here and followed the steps from the user #sinistance and it worked for me using the Nexus 5X Preview API 23.
To simplify this is the answer:
what image did you use? i'm using the preview nexus 5x image. here is the steps:
flash Genymotion-ARM-Translation_v1.1.zip then restart.
flash gapps-L-4-21-15.zip.
sign in into your google account.
flash benzo-gapps-M-20151011-signed-chroma-r3.zip then restart.
that's all
You can find all the files in the link above!
I hope it works for you!
Regards
Since Genymotion 2.7.2 and above follow these steps.
https://www.genymotion.com/faq/#google-play-services
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Drag & Drop the zip installer in new Genymotion virtual device
Follow the pop-up instructions
On Samsung Galaxy S6 - 6.0.0 - 1440x2560:
Flash Genymotion-ARM-Translation_v1.1
Flash open_gapps-x86-6.0-pico-20160524.zip
Please give it a try.
If Google Play Services on Android 6.0 crash everytime, you can try do the same things in this sequence. Maybe it will work.
Here is what I did:
Install a latest Genymotion (version 2.6.0 in my case). Make sure
the previous old (preview) Android 6.0 images are removed(Genymotion
-> Settings -> Misc -> Clear cache).
Add a new virtualdevice, select Google Nexus 5X and Android 6.0
image. It should download a new image from Genymotion website.Start
created Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 virtual device.
Flash Genymotion-ARM-Translation_v1.1.zip (drag&drop the zip file to
virtual device window) and then restart the virtual device.
Flash gapps-L-4-21-15.zip and restart the virtual device again. Now
add Google account in the virtual device via Settings -> Accounts ->
Add account. Do not start Google Play! Ignore any crashes in sign in
process.
Flash benzo-gapps-M-20151011-signed-chroma-r3.zip and restart the
virtual device. Open Google Play in virtual device,update all
installed applications.
Start Google Now with long touch on home button to force dialog with
request to update Google Play Services. Update Google Play Services.
Now the device is prepared with working Google Play and Google Play
Services.
Genymotion android 6.0 with Google play service
For me it worked just to install a package (in my case the full) for x86 and Android Version 6.0 from http://opengapps.org/ by dragging the downloaded zip-file to the machine. A restart was suggested and done
Maybe some Apps won't work but you don't have to do anything else.
I hope I could help you with that answer.
For enable Google play service in genymotion marshmallow version
Download and install Install ARM Translation from here : http://filetrip.net/dl?4SUOrdcMRv
After installation reboot your device (Just close and restart )
After restart Download the gapps/5.1/gapps-L-4-21-15.zip flash from :
http://mirror31.downloadandroidrom.com/download/gapps/5.1/gapps-L-4-21-15.zip?token=432826691
After installation . reboot the device and update yourgoogle play service and google.
For enable Google play service in genymotion, as per answer you mentioned in your question you need ARM and Gapps.
So, Download gapps for Android Marshmallow from here and follow this answer.

why is android emulator on local network offline?

I am developing an android application on android studio. but because of my hardware limits I'd like to test the results through an android studio emulator which is on another computer in my local network.
I've read the tutorial on this page :
I did all of the steps on the page and I can see the device on android studio (on the my remote pc) but it appears to be offline .
any ideas why is this happening?
You can use this tutorial:
https://bitbucket.org/chabernac/adbportforward/wiki/Home
Best Regards,
SanatiSharif

Categories