Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: [Resolved] Problem locating Android SDK API level



Permlink Replies: 6 - Last Post: Sep 12, 2017 7:41 AM Last Post By: Fernando Maia Threads: [ Previous | Next ]
Radoslav Boydev

Posts: 3
Registered: 3/8/17
[Resolved] Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 29, 2017 7:12 AM
I'm using C++ Builder 10.2 Tokyo and I want to configure it to use Android SDK installed with Android Studio 2.3.
I'm following the instructions in the docwiki to add a new Android SDK, but when I reach the point where I need to select an Android API level, there is nothing to select from. I get this message "Cannot locate SDK API level" in the combo box.

I have done a lot of research on that and I figured out that Google made lot's of changes to the Android SDK.

Is there any solution for that from Embarcadero or should I use the old versions of the SDK/NDK?

Thanks in advance for any help

Edited by: Radoslav Boydev on Apr 2, 2017 6:10 AM
Antonio Estevez

Posts: 609
Registered: 4/12/00
Re: Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 29, 2017 10:03 AM   in response to: Radoslav Boydev in response to: Radoslav Boydev
El 29/03/2017 a las 16:12, Radoslav Boydev escribió:
I'm using C++ Builder 10.2 Tokyo and I want to configure it to use Android SDK installed with Android Studio 2.3.
I'm following the instructions in the docwiki to add a new Android SDK, but when I reach the point where I need to select an Android API level, there is nothing to select from. I get this message "Cannot locate SDK API level" in the combo box.

I have done a lot of research on that and I figured out that Google made lot's of changes to the Android SDK.

Is there any solution for that from Embarcadero or should I use the old versions of the SDK/NDK?

Thanks in advance for any help

1) Press the "Finish" button from the wizard to create the Android SDK.
2) Press the elipsis button [...] at the right of "SDK API-Level location"
3) Select the "Android-??" level forder that you want

Radoslav Boydev

Posts: 3
Registered: 3/8/17
Re: Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 29, 2017 11:03 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 29/03/2017 a las 16:12, Radoslav Boydev escribió:
I'm using C++ Builder 10.2 Tokyo and I want to configure it to use Android SDK installed with Android Studio 2.3.
I'm following the instructions in the docwiki to add a new Android SDK, but when I reach the point where I need to select an Android API level, there is nothing to select from. I get this message "Cannot locate SDK API level" in the combo box.

I have done a lot of research on that and I figured out that Google made lot's of changes to the Android SDK.

Is there any solution for that from Embarcadero or should I use the old versions of the SDK/NDK?

Thanks in advance for any help

1) Press the "Finish" button from the wizard to create the Android SDK.
2) Press the elipsis button [...] at the right of "SDK API-Level location"
3) Select the "Android-??" level forder that you want


Yes, this is exactly what I did and now I have another error while compiling the application.
"Build FAILED.
c:\program files (x86)\embarcadero\studio\19.0\Bin\CodeGear.Cpp.Targets(3849,5): error MSB6006: "ld" exited with code 1."
Antonio Estevez

Posts: 609
Registered: 4/12/00
Re: Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2017 3:12 AM   in response to: Radoslav Boydev in response to: Radoslav Boydev
El 29/03/2017 a las 20:03, Radoslav Boydev escribió:
Antonio Estevez wrote:
El 29/03/2017 a las 16:12, Radoslav Boydev escribió:
I'm using C++ Builder 10.2 Tokyo and I want to configure it to use Android SDK installed with Android Studio 2.3.
I'm following the instructions in the docwiki to add a new Android SDK, but when I reach the point where I need to select an Android API level, there is nothing to select from. I get this message "Cannot locate SDK API level" in the combo box.

I have done a lot of research on that and I figured out that Google made lot's of changes to the Android SDK.

Is there any solution for that from Embarcadero or should I use the old versions of the SDK/NDK?

Thanks in advance for any help

1) Press the "Finish" button from the wizard to create the Android SDK.
2) Press the elipsis button [...] at the right of "SDK API-Level location"
3) Select the "Android-??" level forder that you want


Yes, this is exactly what I did and now I have another error while compiling the application.
"Build FAILED.
c:\program files (x86)\embarcadero\studio\19.0\Bin\CodeGear.Cpp.Targets(3849,5): error MSB6006: "ld" exited with code 1."

You probably have installed a 64-bit version of Android NDK.

But using a 32-bit version is not a solution: I tested with r10e, r11c
and r14b versions of the 32-bit Android NDK; the app is linked correctly
but it raises an exception class Segmentation fault (11) at start up on
a device with Android 4.3.

With Android NDK r9d works fine.

Radoslav Boydev

Posts: 3
Registered: 3/8/17
Re: Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2017 6:30 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 29/03/2017 a las 20:03, Radoslav Boydev escribió:
Antonio Estevez wrote:
El 29/03/2017 a las 16:12, Radoslav Boydev escribió:
I'm using C++ Builder 10.2 Tokyo and I want to configure it to use Android SDK installed with Android Studio 2.3.
I'm following the instructions in the docwiki to add a new Android SDK, but when I reach the point where I need to select an Android API level, there is nothing to select from. I get this message "Cannot locate SDK API level" in the combo box.

I have done a lot of research on that and I figured out that Google made lot's of changes to the Android SDK.

Is there any solution for that from Embarcadero or should I use the old versions of the SDK/NDK?

Thanks in advance for any help

1) Press the "Finish" button from the wizard to create the Android SDK.
2) Press the elipsis button [...] at the right of "SDK API-Level location"
3) Select the "Android-??" level forder that you want


Yes, this is exactly what I did and now I have another error while compiling the application.
"Build FAILED.
c:\program files (x86)\embarcadero\studio\19.0\Bin\CodeGear.Cpp.Targets(3849,5): error MSB6006: "ld" exited with code 1."

You probably have installed a 64-bit version of Android NDK.

But using a 32-bit version is not a solution: I tested with r10e, r11c
and r14b versions of the 32-bit Android NDK; the app is linked correctly
but it raises an exception class Segmentation fault (11) at start up on
a device with Android 4.3.

With Android NDK r9d works fine.


Installing the latest Android SDK Platform-tools 25.0.4 and Build-tools 25.0.2 using the Android SDK tools 25.2.5 solved the problem. As far as I understand the issue comes when using the Android SDK tools 25.3.0+ which Android Studio naturally updates.

Now I can use the latest Android NDK r14b as well.

Edited by: Radoslav Boydev on Apr 2, 2017 6:04 AM
Maher Sarsour

Posts: 1
Registered: 10/7/07
Re: [Resolved] Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 14, 2017 4:09 AM   in response to: Radoslav Boydev in response to: Radoslav Boydev
I installed Rad studio 10.2 in different drive (e:\), and windows in drive (c:\) I follow all solutions in the internet and I tried to uninstall/install rad studio (int the same drive) but the error was the same, the android skd/ndk is in drive (e:\), the solution was:

copying the android sdk/ndk to main drive (c:\) to this path: 'C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository
AndroidSDK-2433_19.0.26309.314
AndroidNDK-9c_19.0.26309.314
Now :-) Rad Studio shows all sdk api levels :-) and run the app.

I think that embaracadero should try harder to fix this in their IDE or to post an appropriate solution.
Fernando Maia

Posts: 2
Registered: 11/20/16
Re: [Resolved] Problem locating Android SDK API level
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 12, 2017 7:20 AM   in response to: Maher Sarsour in response to: Maher Sarsour
Maher Sarsour wrote:
I installed Rad studio 10.2 in different drive (e:\), and windows in drive (c:\) I follow all solutions in the internet and I tried to uninstall/install rad studio (int the same drive) but the error was the same, the android skd/ndk is in drive (e:\), the solution was:

copying the android sdk/ndk to main drive (c:\) to this path: 'C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository
AndroidSDK-2433_19.0.26309.314
AndroidNDK-9c_19.0.26309.314
Now :-) Rad Studio shows all sdk api levels :-) and run the app.

I think that embaracadero should try harder to fix this in their IDE or to post an appropriate solution.

Dears,

I discovered that a property ParentShowHint = False in any SpeedButton was invoking "Segmentation Fault (11)" on my project. Maybe because of any trigger event inside the object...
I migrated from Delphi Berlin to Tokyo and its default value is different. I turned all to True (new default value) and the problem was solved.

I think this can help others with the same problem.

Fernando Maia

Edited by: Fernando Maia on Sep 12, 2017 7:28 AM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02