Android Studio 3.0.1 Emulator Not Loading - android-emulator

my emulator stopped working after the most recent update. I am currently using the HAX module to run the emulator.
I cannot seem to find the updater for the Intel module (forgive me, I recently started using Android Studio).
Below is the event log which appears when I try to load the emulator:
23/02/2018
21:28 Platform and Plugin Updates: The following components are ready to update: Android Emulator, Google APIs Intel x86 Atom System Image
21:28 Gradle sync started
21:30 Project setup started
21:38 Gradle sync finished in 9m 17s 764ms
21:38 Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
21:38 Gradle build finished in 15s 456ms
21:41 * daemon not running; starting now at tcp:5037
21:41 * daemon started successfully
21:41 Executing tasks: [:app:assembleDebug]
21:41 Emulator: Incompatible HAX module version 3,requires minimum version 4
21:41 Emulator: No accelerator found.
21:41 Emulator: failed to initialize HAX: Invalid argument
21:41 Emulator: Process finished with exit code 0
21:41 Gradle build finished in 5s 978ms
Some help would be greatly appreciated! Also, if you find any more problems which could cause further issues to my program, please do notify me.

I had the same problem. I went to the Intel site (https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm) and downloaded the latest version of HAXM. I then installed it, and the problem went away!

Related

running flutter app got Execution failed for task ':bluetoothadapter:compileDebugJavaWithJavac'

I didn't change anything in my Flutter application and it was running perfectly but when i tried running on real device i got this exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bluetoothadapter:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
BUILD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1
Check out this post for a workaround:
tools.jar seems to be not in Android Studio classpath on Windows 8
It seems, the tools.jar is not present on every version of Java 8 anymore. Also make sure to use a JDK and not a pure JRE for development.
Maybe it is worth downloading a current version of the JDK from https://adoptopenjdk.net

Flutter App running on emulator but not installing on real device its going till installing but stuck there

FlutterApp running on emulator but not installing on real device its going till installing but stuck there.
it is stuck here!
Launching lib/main.dart on V2043 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
It's stuck here not going forward

Error while launching flutter Application

I am new to flutter development so i followed the google getting started with flutter page as is.
When i used the andriod studio (or) visual studio to create a demo flutter application and try to run it on a emulator i get the below lines .
*Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
Could not open settings generic class cache for settings file 'D:\personalnicknacks\softwares\flutter\hello_app_world\android\settings.gradle' (C:\Users\ing12703.gradle\caches\6.7\scripts\1fnwrr8g4rohfp291nvlxj5qe).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 60
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1*
I have the tried following things.
1)Ensured my JAVA_HOME environment is correct pointing.
2)used the latest java version 16.0
3)used the andriod studio to install the flutter plugins.
4)have also tried to install the gradel manually using the page https://gradle.org/install/#manually
5)now even my gradel output is correct
C:\Users\ing12703>gradle -v
Welcome to Gradle 7.0.2!
Here are the highlights of this release:
File system watching enabled by default
Support for running with and building Java 16 projects
Native support for Apple Silicon processors
Dependency catalog feature preview
For more details see https://docs.gradle.org/7.0.2/release-notes.html
Gradle 7.0.2
Build time: 2021-05-14 12:02:31 UTC
Revision: 1ef1b260d39daacbf9357f9d8594a8a743e2152e
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 16.0.1 (Oracle Corporation 16.0.1+9-24)
OS: Windows 10 10.0 amd64
The suggestion I got online was to downgrade the JDK to say a 12 or so but is that the only viable option or am i missing something?
OK another thing i did try now was to indeed delete JAVA SDK 16 and install the JAVA SDK 15 and it works like a charm.
However I still wonder how do we know when to upgrade to latest JAVA SDK? is some compatibility list of SDK and their respective versions available in flutter documentation?

Android emulator won't start something not found

Android emulator won't start something not found:
21:40 Emulator: [4748]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at C:\Android\android-sdk\emulator\lib64\qt\lib
21:40 Emulator: Could not launch 'C:\Android\android-sdk\emulator/qemu/windows-x86_64/qemu-system-aarch64.exe': No such file or directory
21:40 Emulator: Process finished with exit code 2
21:41 Emulator: [1456]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at C:\Android\android-sdk\emulator\lib64\qt\lib
21:41 Emulator: Could not launch 'C:\Android\android-sdk\emulator/qemu/windows-x86_64/qemu-system-aarch64.exe': No such file or directory
21:41 Emulator: Process finished with exit code 2
I have gone to this issue and enable Android Emulator option in the Android Studio will fix it.
Could it help!
I can't run the Android Emulator
From your question I noticed the following error log:
21:41 Emulator: [1456]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at C:\Android\android-sdk\emulator\lib64\qt\lib
21:41 Emulator: Could not launch 'C:\Android\android-sdk\emulator/qemu/windows-x86_64/qemu-system-aarch64.exe': No such file or directory
This tells us that there is an issue with your Android Virtual Devices SDK.
I suggest you completely uninstall and then reinstall the Android Virtual Devices SDK (AVD Manager).
You can use the following instructions to help you out:
To uninstall/install the AVD Manager, go to Tools > SDK Manager > Android SDK and select the SDK Tools Tab. Then scroll down until you find the Android AVD/Virtual Devices SDK.

ionic framework can't load local notifications

I am taking Coursera's course for Multiplatform Mobile Devices and it says to call:
ionic plugin add de.appplant.cordova.plugin.local-notification
But I am getting the following error:
Toms-MBP:confusioncordova toddcoulson$ ionic platform add android
Error: Platform android already added.
Toms-MBP:confusioncordova toddcoulson$ ionic plugin add
de.appplant.cordova.plugin.local-notification Installing
"de.appplant.cordova.plugin.local-notification" for android
Installing "cordova-plugin-device" for android
Using this version of Cordova with older version of cordova-android
is being deprecated. Consider upgrading to cordova-android#5.0.0 or
newer.
Failed to install 'cordova-plugin-device':CordovaError: The provided
path
"/Users/toddcoulson/documents/coursera/fullstack/confusioncordova/platforms/android"
is not an Android project.
at new android_parser (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:35:15)
at new PlatformApiPoly (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:62:20)
at Object.getPlatformApi (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:70:23)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:610:29)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:407:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
Failed to install
'de.appplant.cordova.plugin.local-notification':CordovaError: The
provided path
"/Users/toddcoulson/documents/coursera/fullstack/confusioncordova/platforms/android"
is not an Android project.
at new android_parser (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:35:15)
at new PlatformApiPoly (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:62:20)
at Object.getPlatformApi (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:70:23)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:610:29)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:407:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
Error: The provided path
"/Users/toddcoulson/documents/coursera/fullstack/confusioncordova/platforms/android"
is not an Android project.
EDIT: I do think this is an issue getting the emulator for android to work. I thought I had things setup, but I never got the emulator working for android. Here is the error when running emulator:
Total time: 2.031 secs
Built the following apk(s):
/Users/toddcoulson/documents/coursera/fullstack/confusioncordova/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/toddcoulson/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
No emulator specified, defaulting to testOne
Waiting for emulator to start...
emulator: Requested console port 5584: Inferring adb port 5585.
Creating filesystem with parameters:
Size: 69206016
Block size: 4096
Blocks per group: 32768
Inodes per group: 4224
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 16896
Block groups: 1
Reserved block group size: 7 Created filesystem with 11/4224 inodes and 1302/16896 blocks emulator: WARNING: Camera name 'webcam0'
is not found in the list of connected cameras. Use '-webcam-list'
emulator option to obtain the list of connected camera names.
Hax is enabled Hax ram_size 0x77300000 HAX is working and emulator
runs in fast virt mode.
emulator: Listening for console connections on port: 5584 emulator:
Serial number of this emulator (for ADB): emulator-5584
[123145554325504]:WARNING:./android/base/files/IniFile.cpp:158:Failed
to process .ini file
/Users/toddcoulson/.android/emu-update-last-check.ini for reading.
Unknown hax vcpu return 1
Another EDIT:
I was able to get the plug-in to load once I had the android project setup with ionic and got Android Studio to load in an emulator. The emulator is still giving an error I put in the comments, but it did allow me to get past these errors.