I've tried a lot of ways to install cordova on my windows 10 laptop. But it always shows some warning or the other. Looks like Cordova isn't installed properly in my laptop. How can I install it properly?
As a beginner, after many failed attempts to properly install cordova in 2020, I realized it's never gonna work using new and updated version of JDK and SDK (atleat not in my case). If some beginner is facing the same situation, I understand the problem. So, here is the solution.
The most probable problem is with your JDK and SDK. The installed JAVA JDK and Adnroid SDK are not compatible. You may probably have downloaded the latest SDK release from developer.android.com. The problem is, it won't work with any version of JDK for some reason and you'll keep getting one error or the other. You need to install the SDK using the old manner through the installer that developer.android.com used to have instead of the recent zip folder. You can get that SDK installer from here: https://dl.google.com/android/installer_r24.4.1-windows.exe . Second thing is to install JDK 8u.... No other JDK would be helpful (atleast not in my case). You can download it from oracle but you need an oracle account for that. Or download it from here: https://www.filehorse.com/download-java-development-kit-64/49906/download/ . These two are the most troublesome tools. Downloading and using above versions will solve major and most of your problems, if not all. Rest of the tools are Node.js, Gradle, Git, Apache Ant, they are easy to go with. Install them and you're good to go.
Have a nice one!
Related
I'm trying to setup IntelliJ IDEA to develop android applications and I faced an issue with android sdk. As far as I know, I need to download the sdk separately. But I all I managed to find was Android command line tools which is obviously not something I need. So my question how can I get android sdk for IntelliJ IDEA?
You can install whichever android SDK or API from Intellij. I have the 2018.1 version but I hope this works in earlier versions too. You can find the options to install the SDKs here:
Same problem I have with IDEA 2017.1.1. I installed tools_r25.2.3-windows.zip and managed to install them.
I've done:
unzipped it to C:\Android\android_sdk\
renamed "tools" folder to "tools-sdk"
executed
C:\Android\android_sdk\tools_inst\bin>sdkmanager --update
prepared file my_file with lines:
build-tools;24.0.0
platforms;android-24
tools
emulator
Executed:
C:\Android\android_sdk\tools_inst\bin>sdkmanager --package_file=my_file
Then gave IntelliJ IDEA folder C:\Android\android_sdk as Android SDK Home Folder.
Then IDEA asks to install something additional. The test android project compiles and runs on emulation (AVD Manager works). I had to install 22 Platform and Build Tools though because android-24 virtual device asked for a password.
The only problem is I still have no SDK Manager with GUI interface.
First of all make sure you'be setup JDK properly. If not, you can download it from here.
Now go to Android Developer official site and download Android Studio.
If you are already done with above mentioned points the few point you might be missing.
When asked to choose the JDK (not SDK) you need to choose the Java JDK which you've installed earlier. Should be under C:\Program Files\Java\jdk{version}
Choose a New platform ( if there's not one selected ) , the SDK platform is the android platform at C:\Program Files\Android\android-sdk-windows.
Please let me know if it didn't help.
Reference:
https://www.jetbrains.com/help/idea/2017.1/getting-started-with-android-development.html
I had the same issue. I tried downloading sdk via android eclipse setup process. Eclipse automatically downloads the sdk. This sdk has a gui sdkmanager and can be used in idea as well. Here is the link to download eclipse.
(Android Studio installed on my computer.)
As i see users missed a point while installing android SDK.
You should show the Android SDK at AppData folder to IntellijIdea.
C:\Users\Your_Username\AppData\Local\Android\SDK_Folder.
References: https://www.jetbrains.com/help/idea/prerequisites-for-android-development.html
https://www.jetbrains.com/help/img/idea/2017.2/AndroidSDKManager.png
You can download the android SDK from this link here. I hope it should be helpful that link.
Can anyone here please provide me with the proper link for Android SDK and Installation of SDK for Eclipse Mars, I have searched a lot, but I didn't find anything other than Android Studio,
I am using eclipse because android studio is not working on my laptop, its very heavy and my laptop takes more time to open and run the program,
so If any one has the better knowledge for downloading and installation, then please provide me here..
and What I am trying to looking at Android developer website, they changed it for only Android Studio. Whenever I open any old link, it is redirecting me to Android Studio, is It true?? Please provide me with some more detail about it.
Thank you
You can download eclipse ADT plugin from here (note that it is not the latest).
Also, there is one more helpful link for getting latest available releases for eclipse (ADT 23.0.7 since August 2015).
By the way, at least for me is very confusing that Android Studio working worse than eclipse. I found that Android Studio is far better than eclipse (but that is only my personal opinion).
Anyway, that is more important: Android Studio is now the official IDE for Android and migration to it is recommended. Eclipse is not supported anymore.
How about you download Eclipse Neon with the Andmore project?
While Eclipse is not officially supported by Google, this project has forked the Android ADT plugin and is being maintained on the side.
I have installed Eclipse on my laptop - it seems to be the Indigo version. The I tried to Install new software. I entered the https://dl-ssl.google.com/android/eclipse url into the Work With box. After pending resolved itself I then pressed next and now have a view of the items and an error saying that a shared profile (maven) is missing. I am stumped as to what to do next!!
The Android SDK works fine with Indigo, and providing you started from a clean Indigo installation, the update site you mentioned should work just fine.
I would suggest downloading a fresh copy of Indigo, hold off installing any other plugins and trying again with that update site. Works fine on my windows 7 machine.
(it's also a good practice not to re-use existing eclipse installations for Android development. IMHO its better to setup a dedicated eclipse installation for it to ensure that other plugins / dependencies mess up the install).
I had the same problem.
Instead of just picking some other versions od ADK and hoping the best, I recommend to take the whole Eclipse + Android set from Google. With this you will get co-working peaces of your IDE. It's not very techy way solve this problem- but it WORKS! Just remember to uninstall your old Eclipse first.
So from here you will get the whole package:
http://developer.android.com/sdk/index.html
""With a single download, the Eclipse ADT bundle includes everything you need to begin developing apps:
-Eclipse + ADT plugin
-Android SDK Tools
-Android Platform-tools
-A version of the Android platform
-A version of the Android system image for the emulator""
I've been using Netbeans 6.9 quite happily with Android for a few months but I completely wiped my SDK yesterday and now, after reinstalling it, I can't get Netbeans to create the Android platform. I can select the platform okay but once I press FINISH nothing ever appears in Netbeans. I've even re-installed Netbeans but no joy.
Could someone post the contents of their platform XML file for Android? I'm thinking I can just enter this file manually and have Netbeans pick it up.
Any other ideas greatly appreciated!
I had the same problem with netbeans 6.9.1, mine was related with some incompatibility between 32bit and 64bit java.
I have Win7 x64 and also had java x64. removed x64 java and installed x86 java without reinstalling netbeans probaly caused the problem
This solved it for me.
uninstall netbeans
uninstall all java jre and jdk's
reinstall 32bit java
reinstall netbeans
reinstall nbandroid
I can only recomend you use Eclips for developing for android.
2 major adventages are:
1. Easly install JDK wich is spesific for eclips.
2. You get an emulator built in, making debuging even fun ;)
on one forum i found:
simply cut and paste the yourandroidlocation/platforms/android-1.1 (what you prefer, your current android platform) folder to the yourandroidlocation/. no files will be overwritten and now the android.jar and the other folders are on the right position.
it solve for me....hi
Note that this whole thread is obsolete now. The current version of android plugin for NetBeans ( http://www.nbandroid.org ) does not register Android platform in Java platform manager. Instead it looks into .properties files in your project to find Android SDK location and target platform that is used to build your project.
-Radim
Owing to problems with the upgrade to SDK2.3, I now need to back out to an earlier version. Fortunately I had saved a cutdown version of SDK 2.1 which would allow me to continue development. However I upgraded my Eclipse pluigin to 8.0.0, which expects a 2.3 SDK environment. Eclipse now complains that it's now missing the new platform-tools folder when I point the SDK location to the old 2.1 version and won't allow me to compile.
I need to uninstall the 8.0.0 plugin and replace it with 0.9.9 but there is no option to download it on the can't find it on the developer.android pages.
Found it!
Although it's not visible on the site, typing
http://dl.google.com/android/ADT-0.9.9.zip
into the browser lets you download the thing. I've finally managed to back out to where I was 2 days ago before 'upgrading' to SDK2.3