Build issues with the following errors after updating Android SDK

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Thank you @Joe Axwvhvm? for this post in the earlier community.

Issue:

With recent Android SDK after latest SDK Tools update lot of people might be facing build issues with Kony Studio/Visualizer and are not able to build Android applications any further.

They might be seeing following issues when Android application is tried to build in Kony Studio/Visualizer

1) An error dialog saying (Error.PNG) "At least one SDK should be installed to run an application" (Latest tools update causing issue)

2) Unable to open SDK Manager ( As Android has deprecated standalone SDK manager and removed it from Android SDK)

Prevention:

If you did not update SDK Tools as yet and is not facing this issue and reading it

DO NOT UPDATE SDK TOOLS to latest.

Resolution:

Mean time to accommodate latest Android SDK TOOLS changes, please follow below steps to resolve the Android build issue

Option A:

Copy older SDK if you have a backup else were and use it.

Option B:

Download older android sdk from one of the links below based on the development machine

Android SDK 24.3.3

MAC: https://dl.google.com/android/android-sdk_r24.3.3-macosx.zip

Windows: http://dl.google.com/android/android-sdk_r24.3.3-windows.zip

Linux: http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz

Open the SDK Manager and do the following:

  1. Select Obsolete option
  2. Click Deselect All to selective choose what you want to install
  3. DO NOT UPDATE SDK TOOLS to latest
  4. Install platform tools
  5. Install build tools 25 or below which is ever is required based on Kony Studio version you are using
  6. Update Android Support Repo
  7. Update Google Repo
  8. Install necessary SDK's and emulator needed for build

(Alternatively you can copy "platforms" , "add-ons" , "system-images" & "extras" folders from your older SDK and avoid downloading them again)

Attached screen shots indicating what needs to be downloaded from SDK Manager

You can download the below 22.6.2 SDK if 24.3.3 version SDK links are not working & follow similar procedure to setup your Android SDK.

Android SDK 22.6.2

MAC : https://dl.google.com/android/android-sdk_r22.6.2-macosx.zip

Windows: http://dl.google.com/android/android-sdk_r22.6.2-windows.zip

Linux: http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz

Please note that this issue has been fixed in Kony Visualizer 8.0

Regards,

Thank you. It helped me to solve my android buid issue

Alternatively ,

you can simply download the older tools from below links and

replace the existing tools folder with the downloaded older version even in new Android SDK.

Windows: https://dl.google.com/android/repository/tools_r24.3.3-windows.zip

MacOSX: https://dl.google.com/android/repository/tools_r24.3.3-macosx.zip

Linux: https://dl.google.com/android/repository/tools_r24.3.3-linux.zip

Regards,

@Joe Axwvhvm?

Hi,

To add the above points, please download the attached tools.zip folder and unzip the same to android sdk folder directly to resolve the issue.

Thank You,