I'm a Google TV developer, and today, shortly after the android sdk 14 was released, I updated everything, from the android sdk to the eclipse ADT. Since then, I can't create a Google TV virtual device. I came to the point where I completely deleted everything and tried to do a fresh install. Here is what happens:
With a fresh download of the android sdk with only Android 3.1 and the Google TV add-on:
$ android list targets
Available Android targets:
----------
id: 1 or "android-12"
Name: Android 3.1
Type: Platform
API level: 12
Revision: 3
Skins: WXGA (default)
ABIs : armeabi
----------
id: 2 or "Google Inc.:Google TV Addon:12"
Name: Google TV Addon
Type: Add-On
Vendor: Google Inc.
Revision: 2
Based on Android 3.1 (API level 12)
Skins: WXGA, 1080p-overscan, 1080p, 720p (default), 720p-overscan
ABIs : x86
$ android create avd -n GTV -t 2
Auto-selecting single ABI x86
Exception in thread "main" java.lang.IllegalArgumentException: ABI Type x86 is unknown for target Standard Android platform 3.1
at com.android.sdklib.internal.avd.AvdManager.getImageRelativePath(AvdManager.java:885)
at com.android.sdklib.internal.avd.AvdManager.setImagePathProperties(AvdManager.java:1637)
at com.android.sdklib.internal.avd.AvdManager.createAvd(AvdManager.java:571)
at com.android.sdkmanager.Main.createAvd(Main.java:1110)
at com.android.sdkmanager.Main.doAction(Main.java:253)
at com.android.sdkmanager.Main.run(Main.java:119)
at com.android.sdkmanager.Main.main(Main.java:102)
Can someone give me a hint on what am I doing wrong?? Or is it a Google problem?
You might try this workaround:
inside of ~/.android/avd/your_avd_name.avd/ create a file 'config.ini'
config.ini should look like:
hw.lcd.density=213
hw.keyboard.charmap=Emulator
skin.name=720.p
skin.path=add-ons/addon-google_tv-google_inc_-12/skins/720p
hw.cpu.arch=x86
abi.type=x86
vm.heapSize=256
hw.ramSize=1024
disk.dataPartition.size=128
image.sysdir.2=platforms/android-12/images/
image.sysdir.1=add-ons/addon-google_tv-google_inc_-12/images/x86/
Update
By default, the android tool creates the AVD directory inside ~/.android/avd/ (on Linux/Mac), C:\Documents and Settings\.android\ on Windows XP, and C:\Users\.android\ on Windows 7 and Vista. If you want to use a custom location for the AVD directory, you can do so by using the -p option when you create the AVD:
http://developer.android.com/tools/devices/managing-avds-cmdline.html
Related
Hi i'm really struggling to get the Android emulator running on my Mac. What are the steps I need to take to get this working?
I've got Visual Studio 2019 on MacOS Catalina
This is on a new blank Xamarin Forms project
I've tried to go Tools > Device Manager > New Device.
Pixel 3 XL , x86_64, Q 10.
I keep getting this message:
Android emulator component is incomplete therefore the device Pixel 3 XL Q 10.0 - API 29 could not be created. Do you want us to reinstall the Android Emulator?
I've clicked the button to reinstall the android emulator but it doesnt work.
Also tried with OS 8.1 and setting processor as x86 - all the combinations give a similar error messages
When i go to Tools > SDK Manager, the following are ticked:
Android 10.0 - Q
Android SDK Platform 29
Intel x86 Atom_64 System Image
Google APIs Intel x86 Atom_64 System Image
Google APIs Intel x86 Atom System Image
Similar for 9.0, 8.1, 7.1, 7.0, 6.0
Version details
- Version is 8.6.2 (build 6)
Android SDK Manager
Version: 16.6.0.50
Hash: 5901879
Branch: remotes/origin/d16-6
Build date: 2020-04-30 04:01:22 UTC
Android Device Manager
Version: 16.6.0.95
Hash: 45d17b5
Branch: remotes/origin/d16-6
Build date: 2020-04-30 04:01:42 UTC
Xamarin.Android
Version: 10.3.1.4 (Visual Studio Community)
Commit: xamarin-android/d16-6/3a10de9
Android SDK: /Users/user/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
I ended up downloading Android Studio, then running the installers from there and then finally went back to VS Mac and installed an emulator device - that seemed to work.
I am able to solve the issue by creating an XML file named entitlements.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>
Then run the following command
codesign -s - --entitlements entitlements.xml --force /Users/macbookpro/Library/Developer/Xamarin/android-sdk-macosx/emulator/qemu/darwin-x86_64/qemu-system-x86_64
to identify your Android SDK installed folder use Visual Studio> Tools > SDK Manager then check the Android SDK path
I am new in the Xamarin.Forms world and the mobile development and I am trying to understand how the framework mvvmcross works. To do it I have taken the example app TipCalc. I am getting a problem when I start this app on a virtual emulator with Visual Studio 2017. I am getting the following error: "TipCalc.Forms has stopped".
Emulator configuration:
Android_Accelerated_x86_Oreo (Android 8.1 - API 27) 1GB
I have following components installed:
Android SDK Platform 27 and Google Play/APIs Intel x86 Atom System Image are installed.
Android SDK Tools 26.1.1 and Android Emulator are also installed. NDK is not installed. I am getting an error without any detail when I try to install it.
My development environment:
Windows 10 Home
Processor: Intel Core i7-7500U - RAM 8 GB 64Bit-OS
Any idea why it doesn't work? Build and deploy works fine (deployment takes a long).
I'm trying to install the Android SDK Tools on my Mac so that I can export projects from Unity 3D to an Oculus Go. I have version 25.2.5 installed successfully and now I'm trying to install the necessary packages. Executing android by double clicking on it pulls up a GUI that suggests a series of packages to be installed.
I was able to install
Android SDK Tools (rev 25.2.5)
Android SDK Platform-tools (rev 28)
Android SDK Build-tools (rev 28)
and all of Android 9 (API 28)
Unfortunately it also suggests install of
API 28, P preview
which contains:
Wear OS Intel x86 Atom System Image
When I attempt to install this last component I get an error message:
Package 'Wear OS x86 Atom System Image, Android API P, revision 2' depends on 'Missing SDK Platform Android Preview, API 28'. It seems weird that a suggested component would have a dependency on something that isn't present.
Anyone have any suggestions on how to fix this? Is it possible that I will have a functional toolchain without installing the API 28, P preview package?
While installing requirements for cordova in ubuntu... i am facing the target android issue:
Android target: not installed
Please install [Android target: "android-24][1] #target".
Hint: Open the SDK manager by running:
/home/hemanth/android-studio/tools/android
You will require:
"SDK Platform" for android-24 #target
"Android SDK Platform-tools (latest)
"Android SDK Build-tools" (latest)
Gradle: installed
Requirements check results for browser:
Check failed for browser due to Failed to check requirements for
browser platform. check_reqs module is missing for platform. Skipping
it... Error: Some of requirements check failed
Even I have installed api 24 still I am getting same error
https://i.stack.imgur.com/Mwvns.png
how to correct this target android error?
i got it..its just installation issue...api-24 version supported by cordova but have to install all APIs ..before doing click on start new project in android-studio
android-studio home page ->settings -> sdk manager -> Select APIS to download
now no issue with target android error
[1]https://i.stack.imgur.com/w5Mrs.png "cordova requirements result"
Unless you have an old version of the SDK, the android cmd is deprecated. Instead try this 1st: avdmanager list target
I'm assuming it won't return anything so then run this: sdkmanager --list
The 1st thing it spits out is what you have installed followed by a list of available packages. Assuming you don't have any platforms installed, look in the list of available packages for platforms;android-XX where XX is the version you wish to target (it should match your platform-tools version)
Then run: sdkmanager "platforms;android-XX"
Now when you run avdmanager list target you should see the API version you just installed and your app should build.
As per their documentation only API Version 23 and below are supported (as of 2017-01-11. Down to version 10 or version 14 of the android API depending on your version of Cordova): http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html
Requirements and Support
Cordova for Android requires the Android SDK which can be installed on OS X, Linux or Windows. See the Android SDK's System Requirements. Cordova's latest Android package supports up to Android API-Level 28¹. The supported Android API-Levels for the past few cordova-android releases can be found in this table:
cordova-android Supported Android Equivalent Android
Version API-Levels Version
8.X.X 19 - 28 4.4 - 9.0.0
7.X.X 19 - 27 4.4 - 8.1
6.X.X 16 - 26 4.1 - 8.0.0
5.X.X 14 - 23 4.0 - 6.0.1
4.1.X 14 - 22 4.0 - 5.1
4.0.X 10 - 22 2.3.3 - 5.1
3.7.X 10 - 21 2.3.3 - 5.0.2
Please note that the versions listed here are for Cordova's Android package, cordova-android, and not for the Cordova CLI. To determine what version of Cordova's Android package is installed in your Cordova project, run the command cordova platform ls in the directory that holds your project.
As a general rule, Android versions become unsupported by Cordova as they dip below 5% on Google's distribution dashboard.
¹NOTE: This has been updated as of 2020-04-18 to update information in the table above. The wording of the post is being retained as answered so as to speak to the original question as asked. Future readers are advised that they should consult the source link to confirm version compatibility.
I am using visual studio to develop cordova apps, they seem to run perfectly on ripple emulator but when I select GOOGLE ANDROID EMULATOR then it gives the error as
THIS AVD's CONFIGURATION IS MISSING A KERNEL FILE
and when I use VS EMULATOR 5'' KITKAT(4.4) XXHDPI PHONE then it gives the error as YOU DO NOT HAVE PERMISSION TO MODIFY HYPER-V NETWORK ADAPTER SETTINGS
Can anyone please help?
It seems like you have an incomplete install of the Google Android Emulator and have to install one yourself.
Download Android Studio, open the SDK manager, and install the following components:
latest "Android SDK tools"
latest "Android SDK platform-tools"
latest "Android SDK build-tools"
Android 6.0 API 23 - SDK platform -- to build the latest kind of Android app
Android 5.0.1 API 21 - SDK platform -- to use the emulator successfully
Android 5.0.1 API 21 - ARM EaBI v7a System Image -- the emulator image which you can use on a machine with Hyper V activated
Then, open the AVD manager and create an emulator with the ARM system image.
Finally, go to tools->options->"Tools for Apache Cordova" -> Environmental variable overrides, and link to where your customized Android Studio is installed.