Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

error: either specify it explicitly with --sdk_root= or move this package into its expected location: /cmdline-tools/latest/

This appears to be a bug with the way sdkmanager locates the SDK installation folder.

A work-around is to set the flag --sdk_root. You can move ANDROID_HOME declaration higher, then use it with the subsequent commands.

 - export ANDROID_HOME=$PWD/android-sdk-linux
 - yes | android-sdk-linux/tools/bin/sdkmanager --sdk_root=${ANDROID_HOME} --licenses
 - android-sdk-linux/tools/bin/sdkmanager --sdk_root=${ANDROID_HOME} "platform-tools" "platforms;android-${ANDROID_COMPILE_SDK}" >/dev/null
Also, moved blanket license acceptance command to the first command to clean up the echo y parts.

Oddly enough if you run sdkmanager --sdk_root=${ANDROID_HOME} "tools" it will upgrade tools from 3.6.0 to 26.1.1 and sdkmanager no longer has this issue. This update takes time and bandwidth and isn't exactly necessary with the work-around.
Comment

PREVIOUS NEXT
Code Example
Typescript :: typescript type for intervalid 
Typescript :: typescript method comments 
Typescript :: check if key is in the js object 
Typescript :: ts await foreach loop 
Typescript :: iframe redirects to another page 
Typescript :: wordpress query to get posts by post meta 
Typescript :: how to install typescript in windows 10 
Typescript :: @react-navigation/native route typescript 
Typescript :: promise.all does not wait 
Typescript :: typescript moment type 
Typescript :: ts error type 
Typescript :: contextual typing in typescript 
Typescript :: html download tag not working angular 
Typescript :: typescript react elements 
Typescript :: ternary operator typescript 
Typescript :: what are data points 
Typescript :: declare jquery in typescript 
Typescript :: how to add jwt token in angular http request 
Typescript :: conditional (click) action angular 
Typescript :: deno current directory 
Typescript :: create plots with multiple dataframes python 
Typescript :: git check if its up to date 
Typescript :: nodejs aws s3 upload 
Typescript :: split list into sublists with linq 
Typescript :: Array.prototype.map() expects a return value from arrow function array-callback-return 
Typescript :: --skip tests generate components - Angular 12 - skip-tests vs spec-false 
Typescript :: absolute path react native 
Typescript :: get formcontrol value 
Typescript :: calling contract method 
Typescript :: loop type in typescript 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =