I'm trying to create a custom hardware profile from the command line, but am receiving this error. I can do this in the AVD Manager, am I missing an option that is required to proceed?
C:\Users\tmcfarlin>android create avd -n my_android_21 -t 11 -b armeabi-v7a
Android 5.0.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]yes
Exception in thread "main" java.lang.NullPointerException
at com.android.sdkmanager.Main.promptForHardware(Main.java:1682)
at com.android.sdkmanager.Main.createAvd(Main.java:1447)
at com.android.sdkmanager.Main.doAction(Main.java:336)
at com.android.sdkmanager.Main.run(Main.java:150)
at com.android.sdkmanager.Main.main(Main.java:116)
Related
please how can i fix this problem
Which macos bundle id do you want to use for this configuration, e.g. 'com.example.app'? ·
i have to write the this my self
'com.example.homeapp'
but after that it will just write me these code
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase apps:create ios home_app (macos) --bundle-id='com.example.homeapp' --json --project=homeapp-f02b4
ERROR: Failed to create iOS app for project homeapp-f02b4. See firebase-debug.log for more info.
I'm trying to develop an entire screen in a flutter project using unity with Flutter_Unity_Widget.
I've followed the package installation instructions at pub.dev "https://pub.dev/packages/flutter_unity_widget"
but when I run the applications it pops up a window with some errors:
screenshot for emulator after running
E/Unity ( 5165): Failed to load 'libmain.so'
E/Unity ( 5165):
E/Unity ( 5165): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.flutter_unity_app-H-CtYDrgxEULJH5uT-8PqQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_unity_app-H-CtYDrgxEULJH5uT-8PqQ==/lib/x86, /data/app/com.example.flutter_unity_app-H-CtYDrgxEULJH5uT-8PqQ==/base.apk!/lib/x86, /system/lib]]] couldn't find "libmain.so"
E/Unity ( 5165): Your hardware does not support this application.
and I can't handle this error.
versions:
unity: 2021.1.4f1
flutter_unity_widget: ^4.1.0
enulator: Nexus 6 API 28 android pie 9
Unity with emulator is usually painful way to develop. Try to find a real device. Because you have to export your unity as library correctly. First install to your device, then export as library. Do you have same errors with real device? Even you successfully install to your device, there is a warning with the widget you use.
Note: Supports only Unity 2019.4.3 or later. UnityFramework does not support emulator.
I am trying to create new emulator but unable to create it in Visual Studio code. It is showing 'No device definitions are available.'
Not sure on which OS you are working, from windows you should be able to create one like this:
cd C:\Users\<Username>\AppData\Local\Android\Sdk\tools\bin
avdmanager create avd -n "FlutterEmulator" -k "system-images;android-27;google_apis;x86" -d "Nexus 5"
In case the image is not available, it's possible to download it with:
sdkmanager "system-images;android-27;google_apis;x86"
I'm having trouble running sync on my iOS device using NativeScript with Angular2.
The following command works well:
tns run ios --device <device_id>
But when I try to run like this:
tns livesync ios --watch --device <device_id>
I get the following error:
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0xd74aab -[TNSRuntime executeModule:referredBy:]
2 0xac487 main
registered for type RadSideDrawer.
3 0x1d0af50b <redacted>
JavaScript stack trace:
1 #file:///app/tns_modules/ui/core/dependency-observable.js:73:28
JavaScript error:
file:///app/tns_modules/ui/core/dependency-observable.js:73:28: JS ERROR Error: Property showOverNavigation already
The showOverNavigation is from the sidedrawer plugin that I'm using. But I have found other people on having the same kind of issue with other plugins.
I had the same error and I solve running the command:
tns run ios --release
with only the real device connected, that makes the app works without error.
Also in the new version of tns the command livesynch is now replaced by the 'run' command.
But with the '--release' part I cannot have all the console.log in the terminal visible.
I selected this emulator from the newest version of Android Studio AVD,
Google API 23
I have selected the latest version of android API 23. Because it says "with Google APIs", I thought that it would actually include all the Google apps, including Play Store so that I can install apps like Facebook.
But I can't see any Google Apps in it.
How do I install Gapps on Android Studio Emulator with Google API23?
Starting from API24 Google publishes emulator images with Google Play. Download it from CLI:
yes | sdkmanager "system-images;android-24;google_apis_playstore;x86" \
"system-images;android-25;google_apis_playstore;x86" \
"system-images;android-26;google_apis_playstore;x86" \
"system-images;android-27;google_apis_playstore;x86" \
"system-images;android-28;google_apis_playstore;x86_64"
Or download it from AndroidStudio:
You can install a particular system image via the terminal, with the following command:
sdkmanager "system-images;android-30;google_apis_playstore;x86"
Trying to install the system images via the terminal, produced the following error:
'sdkmanager' is not recognized as an internal or external command,
operable program or batch file.
If you get this error, then you need to locate where sdkmanager is installed and add that folder to your PATH environment variable.
For me this was located under <AndroidSDK>\tools\bin
However, even after doing this I still got the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 5 more