Closed michael-vasyliv closed 6 years ago
Hi @vasyliv,
I tested your case, however, was unable to recreate this problem on my side.
Make sure that you have installed Android SDK Build-tools
in the Android SDK Manager, for the needed API level.
@tsonevn could you add a list of versions that you have?
Hi @vasyliv, I am attaching ScreenShot of the Build-tools list, which I have on the machine.
@tsonevn thanks for your answers. The problem isn`t actual (however I still can't build the demo to API 25, but a can build other projects like https://github.com/NativeScript/template-drawer-navigation-ng etc.)
Hi @vasyliv,
Did you try to specify the API level as follows:
tns build android --bundle --env.uglify --env.aot --release --key-store-path <path-to-your-keystore> --key-store-password <your-key-store-password> --key-store-alias <your-alias-name> --key-store-alias-password <your-alias-password> --compileSdk=25.0.0
.
There are multiple releases for API level 25, and if you do not set up the exact one, the build might not execute correctly.
@tsonevn thanks for your help, yes I can build the demo with
tns build android --bundle --env.uglify --env.aot --release --key-store-path <path-to-your-keystore> --key-store-password <your-key-store-password> --key-store-alias <your-alias-name> --key-store-alias-password <your-alias-password> --compileSdk=25.0.0
i guess the problem was that i have tried --compileSdk=25.
The build for APIs 25, 24, 23, 22 are FAILED. Source code in the https://github.com/NativeScript/nativescript-background-http/tree/master/demo Steps to reproduce: run in command prompt
the build is successful. then
BUILD FAILED the same for --compileSdk=24, --compileSdk=23, --compileSdk=22
the error is: