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
Related
I am completely new to Android App Development and I'm trying to learn to develop apps through IntelliJ IDEA. When I try to open the activity_main.xml file, I get a prompt saying, "Design editor is unavailable until after a successful project sync", and when I try to sync, I get this error. This happens even after installing all Android versions (including 32) through Android SDK settings.
Any help would be highly appreciated.
Here is the image of the error when trying to sync gradle
The problem that Intellij IDEA doesn't have Android SDK configured. In particular - Android SDK 32. Even if you see that it is installed in the SDK Manager.
I don't remember when we started to see this issue. But it's easy to fix. It's is one time exercise for new installations only.
How to fix this:
Install Android SDK 32 (or any other required) in SDK Manager what you can find in IDEA preferences.
Install JDK 11. Probably this is why IDEA has not configured Android SDKs automatically. The IDEA itself already runs on JDK 17 or higher.
Open your Android project (or just any project in IDEA), go to Project Settings -> SDKs. Press "+" menu button on top and select "Add Android SDK...". Select your root "android sdk" folder. Then choose SDK you needed.
Press OK. Press "Sync Gradle Project" again.
Have Fun.
BTW, after years on Android apps development I would prefer Intellij IDEA over too buggy Android Studio. You on the right way ;)
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 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)
I'm using Google's Android Studio 0.1 based on IntelliJ, and I cannot figure out how to add additional SDKs to my project.
I exported my existing project from Eclipse to a Gradle project, which I imported into Android Studio, as recommended by Google.
My project's SDK is Google APIs 2.3.3. However, I use a library called PullToRefresh which appears to need SDK 4.1, so I'm trying to add the SDK 16 to my project.
I've already made sure to download the SDK using the SDK manager. These SDKs are added to the Android Studio.app's sdk folder automatically.
I opened the Project Structure window, clicked "SDKs" under Platform Settings, and I currently see JDK 1.7 and Google APIs 2.3.3 shown. I click the + sign above that list to add a new SDK. I then navigate to the sdk directory that has android-16, as shown in the screenshot below. I am not quite sure what this wants me to add, but I've highlighted the android-16 folder (about the only thing I can select), and when I click "Choose," the window disappears, but no new SDK appears in the SDK list.
And here is a screenshot of my SDK Manager view, showing the installed SDKs:
I had opened a ticket also with Google's support, and received the solution. Instead of choosing the sdk/platform/android-16 folder, if you select the top-level "sdk" folder instead, you'll then be asked to choose which SDK you want to add. This worked!
You have to put your SDK's in a given directory or .app directory. You have to do it in finder while you are out of the application i'm assuming, but personally I'd use terminal in Mac instead of doing it in the App itself or finder. According to Google:
On Windows and Mac, the individual tools and other SDK packages are saved within the Android Studio application directory. To access the tools directly, use a terminal to navigate into the application and locate the sdk/ directory. For example:
Windows: \Users\<user>\AppData\Local\Android\android-studio\sdk\
Mac: /Applications/Android\ Studio.app/sdk/
You can change from the "build.gradle" file the line:
compileSdkVersion 18
to the sdk that you want to be used.
I had to restart Android Studio for changing the sdk after installing a new one. Then Android Studio asked me for configuring my SDK and let me do it.
And For linux(ubuntu)
/usr/share/android-studio/data/sdk
Download your sdk file, go to Android studio: File->New->Import Module
I followed almost the same instructions by #Mason G. Zhwiti , but had to instead navigate to this folder to find the SDK:
/Users/{my-username}/Library/Android/sdk
I'm using Android Studio v1.2.2 on Mac OS
For those starting with an existing IDEA installation (IDEA 15 in my case) to which they're adding the Android SDK (and not starting formally speaking with Android Studio), ...
Download (just) the SDK to your filesystem (somewhere convenient to you; it doesn't matter where).
When creating your first project and you get to the Project SDK: bit (or adding the Android SDK ahead of time as you wish), navigate (New) to the root of what you exploded into the filesystem as suggested by some of the other answers here.
At that point you'll get a tiny dialog to confirm with:
Java SDK: 1.7 (e.g.)
Build target: Android 6.0 (e.g.)
You can click OK whereupon you'll see what you did as an option in the Project SDK: drop-down, e.g.:
Android API 23 Platform (java version "1.7.0_67")
I'm trying to add a 2.2 sdk to my project and can't seem to figure out how. I tried adding it as an external JAR in the Android sdk folder but ive encountered some errors. How could I add another Android sdk to a previously made Android project?
What you're trying to do is change the SDK version that you're project is targeting. You do not do this by including another jar in your project, you do it by changing the target SDK and minimum SDK for you project. Take a look here on how to do that and for more information:
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
You can't add an SDK to a project, but you can set your project to use a different SDK. To do this, you need to edit the properties of the project (Right-click on the project head in eclipse, and select "Properties"). You can change the SDK to any that you have downloaded through the eclipse plugin.
Note that if you want to support different levels of SDKs, you need to have your project targeted for the lowest of the two platforms. For instance, if you want your project to be compatible with both 1.6 and 2.2, you need to set your project target SDK to 1.6.
An alternative to this would be to create 2 different versions of your application and release them to market.
its simple
right on properties of a project
select android on left side menu
change the sdk version
thats it......