Cordova emulate not running on Genymotion after SDK update - android

Using Genymotion version 2.2.2, Android SDK Tools 23(current), virtual box 4.3 installed and phone image Nexus 4 - android 4.4.2 installed.
So I was using SDK Tools 20(I guess) with eclipse. Genymotion was acting perfectly by then. Cordova was emulating the app in Genymotion. Then I installed android studio and update my sdk tools to 23. Installed selected packages. 4.4 is also installed.
Now Genymotion emulator opens perfectly but cordova isn't opening app in Genymotion. Rather it's searching for ADT for default SDK emulators.
Cordova emulate android
This failed to open the app in Genymotion. I also tried to tweak the Genymotion SDK settings. Nothing helped.
What went wrong?? How to fix it?

Got the answer from Genymotion team, cordova is treating Genymotion as an individual device(not emulator). So to install the app following command need to be given.
cordova run android

Related

How to connect Android Studio 3.6.3 to Visual Studio Emulator for Android?

I am writing an Android application in Android Studio. I want to debug it in Microsoft Visual Studio Emulator for Android (it works on AMD, emulators from Google do not work on AMD). I have installed Visual Studio Emulator and run it. However, it does not appear in the list of available devices in Android Studio.
What I should do for Android Studio to see this emulator as a debugging device?
My version of Android Studio 3.6.3 (current latest version).
I do not know the version of the emulator but it is also the latest.
Other questions on Stack Overflow about connecting these applications are about older versions and do not help to solve the problem with the latest versions.
Android Studio emulators can now run on AMD processors. All you have to do is Navigate to Tools -> Android -> SDK Manager then select the "SDK Tools" tab and tick this option:
Android Emulator Hypervisor Driver for AMD Processors
Then click Apply to download then use it for your emulator.

Genymotion ADB is not taking android-sdk

I am using flutter with android studio on Ubuntu 18.4.
I am trying to run android studio with Genymotion Emulator, so:
I installed genymotion device and run it
and I added genymotion plugin to android studio.
but I could not find the device in genymotion device manager.
I did some search and found that i must make genymotion ADB use the same SDK of android studio.
I tries to do this but Genymotion gave me an error
"this folder does not contain any Android SDK"
this is the error
although this path is same in android studio
Any help please;
Just make sure that you have ADB installed.
Check this link for the downloading information platform-tools and make sure that you have at least one platform installed.
Also, run flutter doctor to make sure that you have nothing missing. or else flutter will inform you of the missing dependencies.

Can I run iOS emulator on Windows using Android studio Avd manger?

I am writing a simple Flutter app on Windows using Android Studio. I am able to test my app on Android emulators well but I can't seem to figure how to add an iOS emulator to AVD manager nor connect to my Mac Pro and deploy to iPhone/iPad. Is that even possible? I do have a Mac Pro with Xcode installed and connected to an iPad.
No, it is not possible.
Any iOS operations require Xcode.
So either use an OSX virtual machine or use a mac. But from Windows, you won't be able to run an iOS emulator.
Unfortunately it's impossible :(
Flutter app can run on Android and IOS emulators with Android Studio, but ONLY on Apple machines (not Windows). So if you have Android Studio installed on Windows machine you won't have IOS emulator.
This info isn't obvious in Android Studio documentation, but you can find more details in Flutter installation guide:
macOS install (Flutter, Android Studio, emulators for Android and IOS)
Windows install (Flutter, Android Studio, emulator for Android)
So in your case the best way is to develop flutter apps on your Mac.
In order to test your flutter app in iOS Simulator,you have to do the following installation procedures into your MacBook:
Install Android Studio/Visual Studio Code and all the Flutter/Dart Plugins/Extensions.
Make Sure that your XCode version is >= 9.2
Install Flutter Bundle for Mac
After Running the Flutter doctor in the terminal and make sure all the important dependencies are installed.
Import the Flutter Project from the Windows to the Mac and Open it in the Android Studio/Visual Studio or Copy Paste the Code from the Windows to the Mac main.dart file
Open iOS Simulator and test the flutter app from the Android Studio/Visual Studio device selection
Use VirtualBox to install MacOS, and then use the virtual MacOS to create an IOS emulator from XCode.
You cannot create an iOS emulator..
However, after running your app on Android simulator you can go to:
Flutter inspector
Platform and then select iOS or Android to override target platform which will toggle rendering and gesture behaviors between Android and iOS.
Just run your code in chrome, open dock side seperated, toggle device size and pick iphone version

Android Studio AVD Emulator error

I'm getting this error while running AVD in Android Studio:
Cannot launch AVD in emulator.
Exec format error
How can I fix this?
Launch the Android SDK Manager and check whether all items are not broken. Try to reinstall Android SDK Tools and Platform Tools.
Don't use Default Emulator it has several bugs especially android 4.4 emulator use Genymotion emulator for fast development. It has plugin for android studio to debug. works in windows,ubuntu,mac
go to link and download genymotion Individual

Can't deploy basic android app with Android Studio on Windows Vista with JDK 8

I have a Windows Vista Home Premium 32-bit computer. I am running the stable Android Studio 3.2.1 with the JAVA_HOME environment variable correctly set to the stable C:\Program Files\Jaba\jdk1.8.0_191. I had to updated this JDK location in android studio to get this to work. I can't run the latest Java 11 SDK because it only runs on 64-bit computers. So, I have an Android 7.0 Nougat smartphone with developer options enabled. I have tried to compile the My First App from developer.android.com/training/basics/fireball/running-app . But cannot get it deployed neither onto any emulator nor onto my device. I try Run... from Android Studio but even though my device is detected I cannot deploy my app to my smartphone. The driver is installed successfully. Any idea what the problem might be, and whether I can fix it?
Thanks.
You have to download the 32 bit Android Studio versiln and just install it. It will install a compatible JVM for 32 bit.

Categories

Resources