sdk icon indicating copy to clipboard operation
sdk copied to clipboard

No Android targets available after Android Studio upgrade to 2.3

Open theom opened this issue 7 years ago • 7 comments

After upgrading Android Studio from 2.2.3 to 2.3 the Android target list in jME is empty. Not quite sure what exactly was included in the upgrade but the Android SDK Tools version I have installed is 25.3.1 with Android Support Repository 44.0.0 and Google Repository 44.

Also, clicking the 'Run Android Target Configuration Utility' produces the following message:

The android command is no longer available. For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager

This is the same output you get if the 'android' command is run from the command line.

It seems Google is changing the structure of the Android SDK a bit and thus breaking the Android support in jME.

theom avatar Mar 10 '17 18:03 theom

The breaking change is version 25.3 of the Android SDK Tools, which removed the android command. jME SDK depends and that command to list the available Android target versions.

theom avatar Mar 10 '17 22:03 theom

https://github.com/jMonkeyEngine/sdk/blob/master/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java#L152

This seems the relevant code. Do you know if there is a replacement command for that?

MeFisto94 avatar Mar 10 '17 23:03 MeFisto94

Can anyone post a link with a valid sdk so I can pass by this bug for now?

dmalves avatar May 08 '17 20:05 dmalves

for Linux 64

dmalves avatar May 08 '17 20:05 dmalves

If it helps: The whole procedure changed. There is no more sdk: https://developer.android.com/studio/index.html#downloads The option "just the command line tools" has no gui for the sdk manager. If presented as sdk to the GUi ("SDK Locaction"), it does not get accepted. The old sdk manager appears if you install the studio. There is a link.

I hope that I am right and that this helps. IMHO, Android is broken for now.

kilmarnock avatar Jun 08 '17 08:06 kilmarnock

People must have complained because there is now a separate download again for just command line tools. To list the currently installed android platforms you can run this command from the tools directory of the android adk ./android.bat list target for windows. Not sure what the command would be for Linux or Mac.

jcrosby10 avatar May 21 '18 14:05 jcrosby10

Users can downgrade to SDK Tools 25.2.5 and it should work until JME is configured to work with the new SDK changes. http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip http://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip http://dl-ssl.google.com/android/repository/tools_r25.2.5-linux.zip

jcrosby10 avatar May 21 '18 14:05 jcrosby10