-
-
Notifications
You must be signed in to change notification settings - Fork 197
Build failure for helloworld project on nativescript.org #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @hy9be, Could you try executing $tns build android --log trace and send the output? |
Could you also send the hardware info of your machine? I experienced such issue on machines with less than 512MB RAM. |
Thanks! I will try to collect the log. The machine has 16GB RAM so should be fine in terms of available memory. |
Here you go, the build trace: TypeError: Cannot read property 'isLessThanOrEqualTo' of undefined |
Even I have the same problem: Here is my build log.
Do I have to install the latest SDK ? |
Hi all, This is a known bug in our build logic. Please see the following link http://www.telerik.com/forums/nativescript-cli-build-failed-no-resource-found-that-matches-the-given-name-%27android-theme-material-light%27 for workarounds. |
I just deleted my sdk folder and trying with the latest sdk. This might take a while! |
Thanks! I tried to "replaced on the file "res/values/styles.xml" Theme.Material.Light to Theme.Light". It did work. |
In res directory there's values directory that is required for all android versions and directory called values-v21, which is required only for Android version 21. In case you do not have installed latest Android version, this directory should not be added to your project. Add copyResValues method, which copies res/values directory and res/values-v<version_number> directory to your project. This way when we add directories for other android versions, they will not break builds for older ones. Fixes #299
Changing from android:Theme.Material.Light to android:Theme.Light worked for me too. Thanks |
I setup the environment as instructed by the page: http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-os-x.html
And then I try to build the hello world project on nativescript.org: http://docs.nativescript.org/hello-world/hello-world-ns-cli.html. But I was given the error below:
BUILD FAILED
/usr/local/Cellar/android-sdk/24.0.2/tools/ant/build.xml:653: The following error occurred while executing this line:
/usr/local/Cellar/android-sdk/24.0.2/tools/ant/build.xml:698: null returned: 1
Total time: 0 seconds
Command ant failed with exit code 1
The text was updated successfully, but these errors were encountered: