无法生成带有vue和ts的Nativescript

无法生成带有vue和ts的Nativescript,nativescript,Nativescript,我创建了一个nativescript vue模板: sudo vue init nativescript-vue/vue-cli-template project 当我尝试使用命令运行它时:tnsrun,我得到以下错误: Gradle build... FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * Where: Build file '/home/peta

我创建了一个nativescript vue模板:

 sudo vue init nativescript-vue/vue-cli-template project
当我尝试使用命令运行它时:
tnsrun
,我得到以下错误:

Gradle build...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/home/petar/Documents/Workspace/js/project/platforms/android/app/build.gradle' line: 221

* What went wrong:
A problem occurred evaluating project ':app'.
> Invalid revision: undefined

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/home/petar/Documents/Workspace/js/roomy/roomy/platforms/android/local.properties'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
Unable to apply changes on device: 2383f95c9f0d7ece. Error is: Command ./gradlew failed with exit code 1.
另外,在我运行命令之后,我收到了几个警告。我安装了androidstudio,试图正确设置JAVA_HOME变量,还有一些其他的事情,但都没有成功

✖ The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android. 
 To be able to perform Android build-related operations, set the `ANDROID_HOME` variable to point to the root of your Android SDK installation directory. 

✖ WARNING: adb from the Android SDK is not installed or is not configured properly.  
 For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements 

✖ WARNING: The Android SDK is not installed or is not configured properly. 
 You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK 
and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements 

您已经安装了Android Studio,但可能尚未设置Android_SDK_根环境变量,正如错误2和tns所指出的那样。
您使用的是什么操作系统?

您可以发布整个错误日志吗?您发布的错误非常普遍且最小。是的,当然,一秒钟好的,我添加了完整的错误消息:)是您无法使用类组件运行CLI模板,还是根本无法运行?你确定你已经配置了Android SDK,包括所有必需的API级别、平台工具等吗?我根本无法运行。但是我不确定我是否正确配置了你说的所有东西,更可能的是没有。我应该配置什么?我正在使用Ubuntu。