ionic run android issue - android

I occured this issue when running ionic run android cmd
Any help ?

Do you have Android SDK? If not, download and install it.
https://developer.android.com/studio/index.html#downloads
Just install it with Android Studio, later you can delete Studio and just leave the SDK (or you can go and find just the SDK but this is easier)
If you already have SDK, go to YourDrive:\Path where you installed\Android\sdk and open SDK Manager
You'll see bunch of Android versions, select android 6.0 (API 23), and download/install through SDK manager. It's not bad to install all versions from let's say API 15 to latest.
When building you will need to have Java path set up.
Refer here if you get something like Java Home not found Error in setting JAVA_HOME

Related

Android Studio Bug? AntergOS Android SDK can't be installed with Android Studio or AUR

OS : Antergos (Linux)
The problem here is the missing Android SDK, I can not install it from either android-studio-2.2 or AUR.
When I tried to install it from the Android SDK, it does not allow me to check the Android SDK Platform for download
Assuming that Android SDK is already installed I proceed to click next only to be met with this message which confirms that an Android SDK is installed. I then tried to start a project which the program in turn throw an error saying that the Android SDK is not installed. I then check the settings and found that the Android SDK Location is not set. I google for the location of default Android SDK location, which is $HOME/Android/sdk, which does not exist on my machine. The only conclusion I can make is that Android SDK is not installed on my machine. I tried to install it from android-studio-2.2's GUI but it does not let me tick it while saying that it is installed. I then tried to install the Android SDK from the AUR, which returns 'package filename is not valid'.
I tried installing android-studio-2.2 from both AUR and the official android site, neither let me download Android SDK.
What might be the problem? Is it Antergos? Could it be that the default install path is different than many other path on the internet?
You need to reset the older SDK and Android Studio configuration by going to the:
/home/brandon/.. directory
and deleting .AndroidStudio2.2 and Android folder. Make sure you have enabled hidden directory visibility. This will reset old Android Studio setup and start over everything from the beginning.

Object reference not set to an instance of an object When I create new Android App (Visual Studio)

In a Visual Studio 2015, Xamarin, Android SDK, jdk 1.7, and emulator are installed and Xamarin has all green checked items in tools>options>Xamarin. But When I try to create Blank App (Android) VS shows an error:
Object reference not set to an instance of an object
Then new project fail to create and solution explorer will be empty.
How could I solve it?
I solved it with updated Android SDK setup (API Level 19 and 21) [3rd party] to Android SDK setup (API Level 22) [3rd party] in Visual Studio setup.
I had the same problem and when I installed Android 4.4.2(API 19) from
Android SDK Manager the issue got resolved. You can open Android SDK Manager in
VS2015 with Update 2 by navigating to Tools-> Android->Android SDK Manager
I figured out this...
Depending on the emulators you want to use with the new project, subject to what is installed using Android AVD, you will need to download the necessary API Level.
Example.
I looked up my emulators.
Then I simply opened Android SDK Manager and downloaded the corresponding API Level 19
And everything worked out well
I also encounter this problem on Visual Studio 2015 Update 2 with Xamarin.VisualStudio_4.0.3.214, but I solved it by installing level 19, 21, 22, 23 through Android SDK Manager.
I struggle with this same problem for a whole day but I got it resolved after several iterations.
Make sure Android Studio is not installed on your computer. If it is, uninstall it and run the VS2015 installer again until all Android SDK errors go away.
Make sure VS2015 is closed and install the most recent stable version of Xamarin for Visual Studio 2015. I found it here: https://store.xamarin.com/account/my/subscription/downloads. (Trying to install it through VS2015 didn't work for me under Tools -> Android -> Settings -> Xamarin for Visual Studio Updates.)
Make sure you have Java SDK version 7 installed on your machine (do not use 8 even though its the latest). You also must use the 32-bit version even if you have a 64-bit machine. This was key!
Install the Android SDK. Standalone version, not Android Studio + Android SDK.
Install the Android NDK.
Restart your computer and open VS2015. Go to Tools -> Android -> Settings and set the correct paths to Android SDK, NDK and Java SDK.
You should be good to go with creating a new project. You are all welcome!!!

Visual Studio Tools for Cordova - FAILS

Everytime I build I get the below error. I'm new to cordova in Visual Studio. I actually tried installing for VS2013 first. I downloaded VS 2015 RC community and I'm trying to get the project started. However I'm getting the below message.
Attempt 1: I tried going into options>VS tools for Cordova> and clearing the cache.
Attempt 2: I've verified that have the correct path to Android SDK.
Attempt 3: I've download Android Studio thinking that it make magically load secret files for Android that I don't have.
All three failed! Help!
EDIT: I downloaded the Android Stand-alone SDK Tools and payed close attention to the path they were installing in. I notice that these were installing in the AppData folder on my machine and not the C:\Program Files x86....android sdk folder. I referenced this new folder and it seems to be working.
Note that these are warnings, not specific build errors. These messages are telling you that you have not installed some specific Android SDK components (not necessarily the Android SDK manager or tools as a whole which is what the link on the Android site gives you). In particular, you need updated build tools and the Android API level 21 SDK. If you have a more recent version of the build tools you are probably fine but missing the specific Android SDK mentioned can cause builds to fail. Each version of Cordova has different SDK version requirements. (4.3.0 uses 21 while 5.0.0 uses 22.)
To install, open the Android SDK manager (which should be in your start menu if you allowed VS to install the SDK for you or see here for its location if you did not).
Then, be sure the following are then checked and click install:
First the build tools version:
Then at least the "SDK Platform" for API level 21. You can also check the entire category if you want access to emulator images. Also note that, despite the name that appears in the SDK manager, a given SDK allows you to target a wide variety of devices. The version like "5.0.1" simply tells you that the SDK enables you to optionally use APIs available up to that version of Android in your native code.

Failed to install Android SDK in Titanium Studio

I have already installed Android 2.3.3 and also pointed the path to my Android SDK in Preferences.
But I am getting the following error:
An Android SDK is missing. Titanium requires Android platform: 2.3.3 or above.
Can anyone help me?
Error mean you need to install Android 2.3.3 (API 10). It's because Titanium requires API 10 to work with Android.
Try the following
Open Titanium Studio
Click on the dashboard button in your Titanium Studio
A new page will be opened as shown in figure 1
4. Click on Android SDK. Here in my case, I have already configured Android SDK properly. That is why the icon shows green otherwise it will display red just like Tizen SDK.
It will ask you to download the SDK. Please select the required SDKS and download them. You can see the installed SDKs also. However try to select all the SDK which will fix your issue quickly. Note that it will download all the SDKs so it's little time consuming.
Edit : You can also refer Install Android SDK with Titanium and Installing Platform SDKs
Hope this helped you!!

No Android SDK found - Android Studio

I have a problem with Android 0.4.2 Studio, when creating a new application, it tells me there is a problem with the rendering and shows me the following problem:
Renderering Problems
No Android SDK found. Please configure an Android SDK.
My setup SDK and JDK is this: Android SDK location: C:\adt-bundle-windows\sdk, I put the path I use in Eclipse SDK, or there may be the problem, if someone has happened and what has been fixed, I'd like to give me the solution, thank you very much.
I just encountered and solve a similar problem.
First you should check the directory like other threads described. Then you can check whether the Build tool version matches your SDK version.
(e.g. for my project, in build.gradle file, you have:)
android {
compileSdkVersion 21
buildToolsVersion "21.1.1" }
and then open you SDK manager, make sure you have the same version of sdk(21.1.1) installed in the selected directoriy:
If not, install it and restart Android Studio. It works for me.
I've also seen other guys saying run Android Studio as administrator would also help:
https://teamtreehouse.com/forum/i-am-getting-this-warning-message-rendering-problems-no-android-sdk-found-please-configure-an-android-sdk
I got the same "No Android SDK Found" error message... plus no rendering for Design window, no little cellphone screen.
My SDK path was correct, pointing to where the (downloaded during setup) SDK lives.
During Setup of the SDK Mgr, I didn't download the latest "preview edition (version 20)"...(I thought it better to use the next most recent version (19)) Later I found, there was no dropdown choice in the AVD Manager to pick Version 19, only the default value of the preview, 20.
I thought "Maybe the rendering was based on a version that wasn't present yet." So, I downloaded all the "preview edition's (version 20)" SDK Platform (2) and system images (4)...
Once download/install completed,
RESTARTED Android Studio and Viola! success... error message gone, rendering ok.
From the File menu, choose Project Structure (if you're running 0.4.4 there's a bug and the menu item doesn't have a title, but it still works), and choose the Android SDK item. You should see something like this where you can set up your JDK and SDK.
After setting it, quit Android Studio and relaunch it for good measure.
i have just discovered, android studio 3.0.1 has no sdk during the installation. because during the installation, it doesn't give sdk as part of install able unlike in recent versions of android studio.
Don't worry just change the
build.gradle
ext.kotlin_version = '1.2.41'
to previous version.
It worked for me hope it works for you too.
Happy coding.
According to the Android Studio download page, the SDK comes bundled with Android Studio. It has its own copy when you install Android Studio.
ADT is a plugin for Eclipse. Try reading through that webpage to see if there is something that got missed when installing.
Here is the wording from the site, regarding ADT:
Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging.
I wanted to share a part of the issue I had because it is the first google result.
I installed Android Studio, when I tried to install my first SDK from the SDK Management windows I got the error that I didn't have any SDK installed.
I tried to look on the internet to manually download the .zip,manualy create the folder, no luck what so ever.
When I tried to run the Android Studio as an administrator it detected I didn't have any SDK and prompt me right away at startup to download a SDK.
Do following steps
a) Change minSdkVersion and sync gradle
b) Revert back your minSdkVersion and sync gradle again
It will be resolved.
These days, Android Studio setup do not provide SDK as the part of original package.
In the context of windows, when you start Android Studio 1.3.1, you see the error message saying no sdk found. You just have to proceed and provide the path where sdk can be downloaded. And you are done.
Here is the solution just copy your SDK Manager.exe file at the root folder of your android studio's installation, Sync your project and cheers... here is the link for details.
running Android Studio on Windows 7 fails, no Android SDK found
Try make New Project, and then choose same android version that you've installed sdk verions on "Target Android Device" dialog.
In my case, error message gone.
I had the same problem, Android Studio just could not identify the android-sdk folder. All I did was to uninstall and reinstall android studio, and this time it actually identified the folder. Hope it also works out for you.
Download android sdk through this sdk manager https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
(note this link is for mac)
open android studio, click next, open where it ask to add path where u downloaded sdk..... add it... click next, it will downloaad updates..... and it done
Right now, the last version of Android Studio bundled (Windows IDE bundle with SDK (64-bit)) with Android SDK is version 2.3.3:
https://developer.android.com/studio/archive.html#android-studio-2-3-3
which size is about 2GB.
You can use it and then upgrade to the latest version of Android Studio.
I am on Mac Os. In my case, my host file was black. I added following entries (these entries should be there by default, but they weren't).
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
After re-running android studio, it prompted the sdk download.
I fixed this bug changing the proxy configuration:
No proxy → Auto-detect proxy settings

Categories

Resources