Must specify SDK target

I am really new to this. I follow the O'Reilly press Android book, a bit dated, I use Pulsar for mobile Java developers. Build id: 20090920-1017 I go to File, New Project, Android, Android Project. I enter "Hello World" for the project name. Then I get "SDK task must be specified." There is a check box, but it says "no goal specified."

How do I get this solution and how do I get to the command line?

+4
source share
3 answers

You need to select one of the SDKs in the Create Target section.

If this is not indicated, cancel the dialog and go to the WindowSettingsAndroid menu, specify the location of the SDK ( android-sdk-windows in Windows) and click Apply .

If you still haven't specified any Target Names , you need to install the SDK first. Cancel the dialog and go to the WindowAndroid SDK and AVD Manager menu. Click Available Packages and select, for example. Platform SDK Android 2.0, API 5, version 1 , then click Install Selected .

+17
source

Secondly, the answer is Yuku, but in my case I did not have a slash at the end of the directory.

This is for Eclipse, although it should be similar.

Window → Preference → Android

Then you will see SDK Location:

It should be something like:

/ Android / Android-SDK-linux_86 /

To file a claim, this is correct, click the "Apply" button, and you will see that the list of Android target names is displayed in the same dialog box.

+2
source

If your target list is empty, play around with the Eclipse font size. I had to drop the font size in the dialog to 5pt / courier new to see any options there.

See http://blog.rowancrane.com/2009/12/27/eclipse-new-android-project-cant-select-build-type-target for details

+1
source

Source: https://habr.com/ru/post/1298946/


All Articles