在离线搭建uni-app,报了这个错
A problem occurred configuring project ':simpleDemo'.
> Could not create task ':simpleDemo:assembleRelease'.
> Could not create task ':simpleDemo:lintVitalRelease'.
> 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 'F:\File\Download\android-uinapp\3.99\Android-SDK@3.99.81993_20231227\HBuilder-Integrate-AS\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.
我直接在当下项目下新建了一个local.properties并加上android SDK路径,并刷新一下gradle解决了问题。
确保android sdk路径正确 如我的 sdk.dir=D\:\\Program Files\\Local\\Sdk
注意这里的 \: 和 \\
该路径 可以在 file -> setting -> 搜索android sdk看到