You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
Warning: Could not create settings
java.lang.IllegalArgumentException
The way we set up variables for sdkmanager is wrong, tested with 'commandlinetools-linux-6514223_latest.zip'.
Correct solution to access sdkmanager found here: https://stackoverflow.com/a/61150826
except step 10 of Stackoverflow's answer, but it doesn't matter.
You can check sdkmanager's version with:
where user@user-VirtualBox: is my Ubuntu VM 19.10. You can create symlink to access sdkmanager without full path: sudo ln -s /usr/lib/android-sdk/tools/bin/sdkmanager /usr/local/bin
and for avdmanager: sudo ln -s /usr/lib/android-sdk/tools/bin/avdmanager /usr/local/bin
I was able to process with step 6 of NativeScript installation with the following command after steps from Stackoverflow:
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" can't be export JAVA_HOME=$(update-alternatives --query javac | sed -n -e 's/Best: *\(.*\)\/bin\/javac/\1/p') because it will always point to a newest version, if you have done system upgrade.
running tns doctor will be successfull:
user@user-VirtualBox:~$ tns doctor
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.7.4 version and is up to date.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Make sure to check the existing issues in this repository
Please, tell us what's the problem?
[ ] A typo
[ ] Wrong documentation
[ x] Improvement of existing article
[ ] Missing documentation
[ ] New article needed
Please, tell us more details
Step 6 of installation doesn't work:
We will receive error:
The way we set up variables for sdkmanager is wrong, tested with 'commandlinetools-linux-6514223_latest.zip'.
Correct solution to access sdkmanager found here:
https://stackoverflow.com/a/61150826
except step 10 of Stackoverflow's answer, but it doesn't matter.
You can check sdkmanager's version with:
where
user@user-VirtualBox:
is my Ubuntu VM 19.10. You can create symlink to access sdkmanager without full path:sudo ln -s /usr/lib/android-sdk/tools/bin/sdkmanager /usr/local/bin
and for avdmanager:
sudo ln -s /usr/lib/android-sdk/tools/bin/avdmanager /usr/local/bin
I was able to process with step 6 of NativeScript installation with the following command after steps from Stackoverflow:
Also in file
.bashrc
variableANDROID_HOME
must look like this:export ANDROID_HOME="/usr/lib/android-sdk/"
When everything is done correctly my variables in .bashrc look like this:
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
can't beexport JAVA_HOME=$(update-alternatives --query javac | sed -n -e 's/Best: *\(.*\)\/bin\/javac/\1/p')
because it will always point to a newest version, if you have done system upgrade.running
tns doctor
will be successfull:The text was updated successfully, but these errors were encountered: