I have an Android project in Eclipse that has targeted Android 2.2 for many years but now I want to use some newer features that are only available in later versions of Android, e.g., 4.xx
There is a Stack Overflow question on how to change the build target...
How to change target build on Android project?
. . but my selection in the box on the right that they mention only goes to 3.2. How do I increase my options to newer versions on Android?
Android Studio - the now official IDE for Android development has a handy import feature for making Eclipse projects work.
As CommonsWare above mentioned, it might behoove yourself to make the switch.
It recently hit its 2.1.1 stable release: http://developer.android.com/sdk/index.html
Install Higher version packages , Go to Android SDK Manager-> Select Version-> Install. Keep in mind Eclipse support has been ended, Use Android Studio.
Check Link to know how to install packages- (http://www.wikihow.com/Install-Eclipse-and-Setup-ADT)
Related
NOTICE: I found other questions and answers about the same issue, but the answers are for older versions of Android Studio, and I want confirmation if it still can work for the latest version of Android Studio (2.2.3.0 which was released on December 6, 2016)
I'm new to the Android development and I selected the IDE to use wrongly and before thinking and knowing which IDE to use.
So after this mistake, I must use Android Studio now to use the GRADLE libraries as Eclipse doesn't officialy support them (because Eclipse is now discontinued).
The Android Studio is 1.63 GB (including the Android SDK), while Android Studio is 417 MB (without the Android SDK).
I have Android SDK Tools R25.2.3 ( latest ) already downloaded, so I don't want to download the whole Studio + The Android SDK again.
Is it possible to download the Android Studio without the SDK, then link the SDK to the Studio manually?
I'd be very thankful if someone could help!
Yes it is possible , Studio and SDK can been seen as separate components and they can be linked by providing SDK path in the studio IDE or you can configure you SDK path thorough the setting menu shown at the start screen of android studio.
You can download the standalone IDE through Official Android Studio site.
Note : http://tools.android.com/ has dropped the support of providing separate SDK and IDE components but still IDE can be downloaded individually from Android Official Download Link
Steps to configure after download
1.) Download and Extract the IDE
2.) Find studio or studio64 exe and run the appropriate one in your OS
3.) When you start your studio , it will probably ask for SDK location through a prompt screen and provide the location and hit next and next , eventually it will show you a little process for update window and show you finish screen (Must follow the note below)
3.a) If there was no prompt screen shown then you can configure the SDK path using the setting option on the Splash screen of android studio
3.b) It's possible that when you open an old studio project and SDKis still not configured because every project has it's own setting so again you can see the link in error/log window as configure SDK and just click the link and provide path
Note : Disable internet before configuring you studio otherwise it will look for Updates
Helpful points to possible issue
For old project , replace the old dependencies with the one you have in project structure link for Visual representation of steps
Replace the gradle version with the one supported by your new studio and do the same if any other tool is not found.
Definitely. The Android Studio IDE prompts you to specify the path containing the Android SDK tools, if it doesn't detect the SDK automatically.
I'm importing this project from Github into Android Studio 2.1.2. I'm at a point where it's asking me "Please select project SDK. This SDK will be used by default by all project modules." There are 2 options - "1.7" or "Android API 23 Platform". How do I know which one to pick? The "1.7" option has a ton of files while the other has only 2 files.
My overall goal is to just open this project and learn from it. I wanted to look at the source code for a functioning project that is not as simple as the tutorials given for Android Studio. I wanted a bit more complexity.
That means you probably haven't configured Android Studio. YOu have to install Android SDK in order for everything to work.
I cannot find the raw SDK download link, so you probably have to use Android Studio to download it.
Also, you should download Java 8 to get all functionality of Android Studio 2.1.2(Android Studio 2.x requires java 8(or higher)) so selecting 1.7 is probably for compatability mode
I have android studio 1.3 and when I open the SDK Manager I see many components for each API in that. For the API23, for the API22, for the API21 and etc.
The components like the platforms23 and etc or Android SDK Tools23 or for the lower APIs or the Android SDK Build Tools and etc ......
Really if we want to use the IDE like android studio 1.3 and creating a project with Minimum API equal to the 9 What is needed to do this? When I see the SDK Manager window,I see many components in that to install, I want know the important components for creating a project in IDE like android studio 1.3.
Please say me the their name in here. Because I use android studio 1.3 and I have many components in the sdk folders. But still I do not know that which folders are important for creating a project in android studio.
Google I/O 2015 promised debugging native code in Android Studio. To do this, you need to install ndk-bundle through SDK manager and update Android Studio to the latest version (Canary branch). And what to do next? How setup? Here is a link to the source. Source
Update June 2016: In Android Studio 2.1 the default run configuration supports native debugging so there should be no need to do the below unless you're using an older version.
For older versions:
Here's how to debug native code in Android Studio:
Go to Run->Edit configurations
Click the + sign
Choose 'Android Native' as the configuration type
In the Module dropdown choose your app's module
Add breakpoints to your C/C++ code
Run->Debug...
The app should be deployed and the lldb debugger will attach after ~10s.
Note: When creating the debug configuration under the 'Native Debugger' section you can choose gdb, however this is less well supported than lldb and known to be buggy. Use at your own risk.
Actually, the advertised NDK support isn't available yet, even if you download the ndk-bundle and update Android Studio to the latest version in the canary channel (1.3-preview3 as of now).
The SDK tools team said that the NDK support wasn't part of the first previews of Android Studio 1.3. However it should be out soon - they recently mentioned mid-June as a target.
update: the debugging support is out now. It wasn't the case at the time of the initial question - thanks for all the downvotes since then :) please look at donturner's answer below.
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