I'm trying to use PhoneGap on Dreamweaver CS6 with the Android SDK. Under Phonegap build settings, I add the location of the SDK('\Android\android-sdk').
I get back the following message "The SDK location provided for Android is not valid. Please verify your settings.".
Anyone know what I'm doing wrong here?
You will need to add two subdirectories to your path: /tools and /platform-tools
http://developer.android.com/sdk/installing.html
Try upgrading the Android SDK and install it to a different directory.
Then point your Dreamweaver to that new directory.
You probably have to have a valid AVD there as well.
If you launch the Android SDK Manager it shows you the SDK path at the top of that window. I just used that and it worked.
Related
I am a newbie android develiper. I have just installed the most recent Android Studio and downloaded libGDX setup tool. However, when I try to generate a new project, it shows the error:
Your Android SDK path doesn't contain an SDK! Please install the Android SDK, including all platforms and build tools!
I am pretty sure I have Android SDK installed and I put a correct location C:\Users\Denis\AppData\Local\Android\Sdk, because I copied it from Android studio.
This is how libGDX is checking if android SDK location valid:
public static boolean isSdkLocationValid (String sdkLocation) {
return new File(sdkLocation, "tools").exists() && new File(sdkLocation, "platforms").exists();
}
However, I don't have tools folder in my setup. Probably, in fresh Android SDK it was renamed or I don't have required tools installed, not sure (pls suggest in comments). However, the workaround is to create an empty tools folder in C:\Users\Denis\AppData\Local\Android\Sdk
I just had the same issue to day. I think the problem is that the SDK that comes with Android Studio dos not contain the "tools" folder. You'll have to download it manually and add it to the SDK. Here is the link. I hope this helps you.
I found a lot of questions similar to this and found the following information
"Where does Android Studio install sdk on Mac?
Configure Android SDK Variable In macOS.
Generally, the Android SDK is installed in the /Users/user-name/Library/Android/sdk folder on macOS."
https://www.dev2qa.com/how-to-set-android-sdk-path-in-windows-and-mac/
In your "Android SDK: " area on libGDX you can type in the following path and just replace with your username
/Users/"user-name"/Library/Android/sdk
Appcelerator Studio 4.7.1.201609100950 on Mac OS X cannot find Android SDK. I have downloaded it with the button on the Appcelerator Studio Dashboard. After download was successfully finished, the Appcelerator Studio was not able to recognise it.
I was getting the following error : [Android SDK Home] No Android SDKs were found under the specified SDK location
I had this issue as well. The reason is (for me at least) is when I first created the App, it was with an older version of Studio & SDK.
One solution, is create a new Project with the latest SDK & Studio, then paste all your code in that new project (make sure everything is updated correctly in tiapp.xml), then you will see there is no more issues running Android.
You can also try it with just a new Mobile Project (with latest SDK, currently 5.5.1.GA), and see if it runs on Android. If this works, you can move all your code to this new project.
Did you try this:
To use the Android SDK with Studio, the path to the SDK must be set in the Preferences dialog.
Open the Preferences dialog:On Mac OS X, from the menu bar, select Appcelerator Studio > Preferences.
In the Preferences dialog, navigate to Studio > Platforms > Android.
Enter the path to your Android SDK in the [Android SDK Home] textbox by clicking Browse then navigate to the SDK directory.
The Android SDK will be found in the Library folder...something like /Users//Library/android-sdk
You did install the android-sdk right!?
What happens from command line when you run appc ti info -t android?
Also, check your Android SDK setting in appc ti config as well as check to see if you've set an environment variable in
/~/.bash_profile called ANDROID_SDK
, and if so that it matches the correct current location of the SDK
If you can't solve this try to change your sdk directory and change it in appcelerator too.
Hope that will help you.
I personally store my SDK and NDK in
/opt/android-sdk
and
/opt/android-ndk
with links in the .bash_profile
export ANDROID_SDK=/opt/android-sdk
export ANDROID_NDK=/opt/android-ndk
finally, use appc ti setup android to set the paths there as well. Both Studio and CLI will pick it up properly from there. Thx!
You can see I have SDK tools installed and the SDK platform installed.
I have no clue why I am getting the error below in the CLI?
I have already created the app, I following http://cordova.apache.org/docs/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface getting to the platform add step I am failing miserably. Maybe I don't have the android command ? If so how do I do that?
Is it because of administrator access(if so, how do I fix that), is it a path issue(again how do I fix it)?
I installed ant then I went into C:\Users\visum_000\.cordova\lib inside there I deleted the android folder, then tried the command again, here is what happened.
You see it downloaded but still gives the error.
It actually looks like you have installed the Android SDK properly on your box.
Have you adjusted your Path settings and added the Android tools path accordingly ?
Any best practices/recommendations on the installation folder for the Android SDK? Following http://developer.android.com/sdk/installing.html on OS X and Step 2. "...unpack it to a safe location on your machine..." makes no sense at all for me coming from Windows.
I install it using Android Studio and i found it here:
/Users/username/Library/Android/sdk
Check here too /usr/local/Cellar/android-sdk/
4/1/16
I also found it in the gradle properties of my project:
Expand Project
local.properties for gradle SDK
Even tells you location of SDK with path, time stamp and location
If you have access to the Android SDK Manager you can look at the top of the window.
/Applications is the most natural place. Maybe /usr/local for the old Unix folks.
MacOs Android Studio
Just create a blank project. Go the project explore panel and open the local.properties file. You can find the SDK path as below.
sdk.dir=/Users/{USER}/Library/Android/sdk
It could be any location on your Mac. Preferable where you have Read,Write and Execute Access.
Please note this is just a starter kit. Android SDK Manager would add packages depending on the platforms you need.
I installed Android plugin using Tools/Plugins/Settings and copied the link there, and so on. In the next step, I would get to Tools/Java Platforms/Add platform, then it pope up with "1.Choose the platform folder" instead of "1.Select platform type". Because of that, I couldn't proceed into the next steps.
I tried to remove and reinstall Java SDK and Netbeans several times using different methods. But nothing has changed. I really appreciate the answer.
Thanks
You are following one of outdated install guides/tutorials. Current version of Android support only needs to know where your Android SDK is. Go to Tools | Options | Misc | Android and set the location there. You can find more details at http://www.nbandroid.org/
It can even detect this location automatically if you open some configured project but it seems this is not your case.
After installing the plugin the sdk and the platform then choose from netbeans file new project android project next choose the target platform listed under target name input package name and voila.
Installing the platform is a seperate step. Look in the sdk folder and read the readme. On linux, at least, it says to run the "android" program, which is in the tools folder. After installing the platform through this it should let you progress in setting up netbeans.
It's not an obvious step if you're a noob and head straight to google with "setup netbeans for android"