Trouble installing Android SDK for Appcelerator studio on windows 7 - appcelerator

I have trouble installing Appcelerator studio on windows 7. I am getting the following error when trying to create a new mobile project (Alloy project) and run the same on an android device. Works fine on mobile web.
[ERROR] : No valid Android SDK targets found.
[ERROR] : Please download an Android SDK target API level 23 or newer
from the Android SDK Manager and try again.
The android SDK is already in place and have properly referenced it. Still no luck there.
Please find the platform specifics
Appcelerator Studio version : 4.5
Titanium SDK : 5.2.0GA
OS : Windows 7 (64 bit)
Any help will be much appreciated.

To identify the problem:
1. Verify android SDK path $appc ti info -t android
Android SDK
Android Executable = /Users/kk/Library/android-sdk-macosx/tools/android
ADB Executable = /Users/kk/Library/android-sdk-macosx/platform-tools/adb
SDK Path = /Users/kk/Library/android-sdk-macosx
Is this what you wanted to refer ?
Verify API Level 23(Android SDK 6.0) is installed or not from the above command output.
android-23
Name = Android 6.0
API Level = 23
Revision = 1
Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin360x325, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare320x320
ABIs = armeabi-v7a, x86, x86_64
Path = /Users/kk/Library/android-sdk-macosx/platforms/android-23
Verify Android SDK path in the studio, is it referring to the same path ?
That you can check from, Appcelerator Studio ->Preferences->Platforms ->Android
Check "Android SDK Home" path.
And also see installed android SDK's from, by clicking on "Install SDKs...", this will open up the dialog. Is "Android 6.0" selected here?

I was not able to select or install Android SDK's via Appcelerator Studio -> Preferences -> Platforms -> Android -> Install SDKs, the versions are greyed out, see below:
I updated my Android SDKs using C:\android-sdk-win\tools\android.bat but this is not enough. I opened my Tiapp.xml file and clicked install below "Deployment targets":
I noticed that API level 23 (Android SDK 6.0) was not checked, so I selected it and clicked configure to install the SDK (or update it):
This solved the problem for me!

Related

Run flutter from vs code to physical phone without Android studio or emulator on windows

I started to Learn flutter toolkit need to run the app on physical phone no need to install emulator or Android studio just I install:
A)Flutter sdk and add to windows path.
B)install vs code to use as editor , just add flutter plugin to it
C) connect my physical Android phone and already work in developer mode.
The problem when I run command
Give me that my phone not connect and when run app using F5 in vs code ask for emulator I don't need that I need physical phone only.
That is flutter doctor I have any body can help me what I need to add to my PC no need Android studio no need to add any emulator.
$ flutter doctor
[√Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft
Windows [Version 10.0.17763.1158], locale ar-SA)
[XAndroid toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android
SDK components.
(or visit https://flutter.dev/setup/#android-setup for
detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[!Android Studio (not installed)
[√ VS Code (version 1.44.2)
[!Connected device
No devices available
Doctor found issues in 3 categories.
You must need android sdk to run flutter app on your android and xcode for running on iphone. Download android sdk and check again.

Impossible to create an Android Virtual Device for Android 7.0+ in Visual Studio for Mac?

This is how the Xamarin SDK Manager looked when Visual Studio for Mac was first installed. Only Android 6.0 items were downloaded/installed, and only the items pictured were installed:
By default, an Android Virtual Device called “Android_Accelerated_x86” was preconfigured and available for use when I installed Visual Studio for Mac and updated Xamarin. As far as I can tell, it is an AVD created using the “Google APIs Intel x86 Atom System Image” from the above screenshot, using Android 6.0.
I am able to debug to this Android_Accelerated_86 AVD, with a Xamarin project. It works fine as expected.
I now want to create an AVD using Android 7.1. What I did was in Visual Studio for Mac, I opened the xamarin SDK Manager, and downloaded the following items (checked in the picture):
You can see I downloaded the similarly-named “Google APIs x86 Atom System Image” for Android 7.1, as was preinstalled automatically with Visual Studio for Mac for Android 6.0.
In theory, I would think this should be all I need to be able to create a new virtual device. In visual studioI go to Tools > Google Emulator Manager, and I click "Create..." to try and create a virtual device. For Device, I've tried picking Nexus 10, Nexus 9, Nexus One, 10.1" WXGA Tablet, etc. No matter what Device I pick, if I pick a Target of Android 7.0. 7.1, or 8.0, the CPU/ABI section says "no system images installed for this target". Also, if I pick a target of “Android 6.0 – API Level 23”, it says that “no system images installed for this target”, just like it did for Android 7.0 and higher.
The ONLY way I can create a new virtual device is by picking a Target of “Google APIs (Google Inc.) - API Level 23”, and then it will let me choose “Google APIs Intel Atom (x86)”, and I assume this is because I have the “Google APIs Intel x86 Atom Image” installed from the Android 6.0 section. But I have that corresponding image installed for the Android 7.1 version as well, so why can’t I at the very least pick a target of Android 7.1 and also be given a CPU/ABI choice of “Google APIs Intel x86 Atom image”? I have the same image type as is installed for Android 6.0!
I've tried this on two different machines, with the exact same results. I've also tried downloading appropriate images for Android 7.0 and 8.0, and am still having the same problem - I can't create Android AVDs past Android version 6.0. Has anyone successfully used the SDK Manager and Google Emulator Manager to configure an AVD with Android 7.0 or later? All existing discussions about this type of problem that I can find only show Android 6.0 or earlier. I also tested this with the most recent version of Visual Studio for Mac, and have fully updated all my Xamarin components via the stable auto-update channels.
Visual Studio for Mac (VS4M) uses the Android Emulator Manager within Android SDK Tools version 25. That version from Google does not support later Android Virtual Devices AVD APIs.
If you upgrade your Android tools version to the latest version (currently 27.01), you will receive this message when trying to open the Google Emulator Manager from the VS4M's Tool menu:
As it states, the latest version of the Google Android tools has removed the standalone GUI for creating AVDs.
So you can create them via the cmd-line using avdmanager which is located within your Android SDK (android-sdk-macosx/tools/bin).
❯ ./avdmanager
Usage:
avdmanager [global options] [action] [action options]
Global options:
-s --silent : Silent mode, shows errors only.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-h --help : Help on a specific command.
Valid actions are composed of a verb and an optional direct object:
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- list device : Lists existing devices.
- create avd : Creates a new Android Virtual Device.
- move avd : Moves or renames an Android Virtual Device.
- delete avd : Deletes an Android Virtual Device.
Personally I use the one that replaced it and that is within the Android Studio (Tools / Android / AVD Manager):
To use this one does mean that you need to download the full Android Studio dmg but I already use it for writing/compiling Java libraries for Xamarin.Android binding libraries, access to Android Instant Apps tools, etc... Also its Android SDK Platform and Tools manager is "better" than Xamarin's (IMHO/Its a personal preference thing...).

Reinstalling Windows/Visual Studio 2015/Xamarin - Cannot find Android SDK

After reinstalling Windows/Visual Studio 2015/Xamarin I can no longer compile Android projects as Xamarin cannot locate the Android SDK.
I installed the Android SDK via the Xamarin installer to the default path (AppData) and as you can see from the screenshot the path is configured correctly.
When I run a build I get the following error as the Android SDK path Xamarin is searching for is in Program Files (x86) despite the Android SDK location setting pointing to AppData.
No Android platform found. Please click here to open the SDK Manager and install an Android SDK Platform.
How can I configure Xamarin to use the Android SDK in AppData?
Additional info:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools\Path is also pointing to AppData
I dont think its relevant but I used the Windows 10 reset & keep files feature to reinstall, perhaps it left some residual configuration that is conflicting with the new installation...
Confirm you have correct android api level installed. In your case android API level 25. Copy your exact android-sdk path from Xamarin settings into explorer address. and then navigate into the platforms subfolder from there to ensure it is installed in that exact location e.g. android-sdk\platforms\android-25? I know there is a program files x86 error but please check android-25 folder is in your specified sdk path.
Try run xdecleanup.exe in C:\Program Files (x86)\Microsoft XDE
(I know you have tried this but for answer robustness sake) Ensure HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tool points to the correct sdk location
restart your pc and try a clean rebuild
You should point your environment variable to the location of sdk in AppData->Local->Android->android-sdk,
and update all your android sdk tools and android sdk platform tools in sdk manager.

Android SDK could not be found - Android SDK Location is correct

I've installed Xamarin and tried in Visual Studio to start with a small app and test the web view with this. So for this, I've installed the JDK, the Android SDK and Android NDK on my computer. I'm working throught a tutorial for a web view and I have the problem, when I run the Main.axml, it shows me the error, that my Android SDK could not be found (look at the first attachement). When I check my location paths for the JDK, SDK and NDK, it shows me the correct path and a green tick, so the path and files are correct (look at the second attachement). But my app don't recognize it. What's the problem here? I found some threads on stackoverflow for the same problem, but nothing helped me.
1. Attachement
2. Attachement
OS: Windows 8.1
IDE: MS Visual Studio 14.0.23
Xamarin: 4.2.0
EDIT:
I also tried to open my Android SDK Manager, but this one is disabled in my visual studio. I've installed Xamarin, so it should work:
Any ideas? Thanks.
I tried so many things and finally I have the solution for my problem:
Possible reason for the problem: I just installed the Xamarin, which installes also the JDK, Android SKD and Android NDK in it's wizzard, so I thought this should be the correct versions. After installing Xamarin, I opened my Visual Studio and checked the paths (Tool - Options - Xamarin - Android seetings) for my JDK, SDK and NDK. The paths show on the versions, which were installed by Xamarin. My Android SDK Manager was disabled.
Solution: Then I uninstall everything - the JDK, SDK and NDK and also the whole Xamarin and my old Android Studio. After that, I decided to install the newest JDK from the Java website, the newes Android SDK/NDK from the Android Studio website and a plane xamarin without the sdk/jdk installation. So I could be sure, that I have the correct versions. After the installation, I again opened Visual Studio - Tool - Options - Android seetings and set the paths to the new versions. Than I checked my Android SDK Manager and it was finally enabled and so I installed also the newest Android SDK Tools. After that I cleaned and builded my solution, start it and my android emulator opens my webview page. So I think, the best way is to install the required programms from their website and not automaticlly with xamarin. Now it works. Cheers.

Could not find the Blank Android Wear Application template in Xamarin Studio

I am new to Xamarin Studio. I am trying to create an app for Android Wear using Xamarin studio. I have installed the Xamarin Studio 5.5 (upto date version) and Xamarin.Android version 4.18 (Trial Edition). I've gone through the below link before I start to set up my environment.
http://blog.xamarin.com/tips-for-your-first-android-wear-app/
As said in the blog, I have installed the latest Xamarin Studio, in which I couldn't find the template for creating a new Android Wear application in either my XamarinStudio or Visual Studio.
I have tried to download the sample given in the below link:
http://developer.xamarin.com/samples/android/Android%20Wear/
On building the samples, it gives me the dll missing errors.
for ex: I have downloaded the Eliza Chat sample from the above sample, and on running the sample I have been faced some dll missing issues. After downloading them manually from internet and refer them, I am facing the below error
"Error 1 No resource found that matches the given name: attr 'android:windowSwipeToDismiss'. C:\Users\XXX\AppData\Local\Xamarin\Android.Wearable\1.0.0\embedded.\res\values\values.xml 128 ElizaChat"
Note: I have installed the Android Wear Emulator with the help of the SDK Manager. And I have installed the Android L (API 20, L Preview) and Android 4.4 W(API20) through SDK Manager. And I have installed Android Support Repository and Android Support Library.
Do I need to install any thing else to work with Android Wear application. Any help would be appreciable.
Thanks,
Karuppasamy P

Resources