Can't build the app
Opened this issue · 0 comments
According to the official docs, I create a simple template app:
ns create myapp --svelte
But when I launch it with
ns run android
Something is wrong:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Could not isolate value com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Params_Decorated@7ee60544 of type VerifyLibraryResourcesTask.Params
> Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not resolve com.android.tools.build:aapt2:7.1.2-7984345.
Required by:
project :
> Could not resolve com.android.tools.build:aapt2:7.1.2-7984345.
> Could not get resource 'https://maven.google.com/com/android/tools/build/aapt2/7.1.2-7984345/aapt2-7.1.2-7984345.pom'.
> Could not GET 'https://maven.google.com/com/android/tools/build/aapt2/7.1.2-7984345/aapt2-7.1.2-7984345.pom'.
> Connect to maven.google.com:443 [maven.google.com/142.251.43.14] failed: Connection timed out: no further information
- 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 1m 29s
Failed to build plugin @nativescript/core :
Error: Command gradlew.bat failed with exit code 1
Could anyone helps me?Thanks.
and my ns 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 8.2.3 version and is up to date.
✔ Component @nativescript/core has 8.2.2 version and is up to date.
✖ Component @nativescript/ios is not installed.
✔ Component @nativescript/android has 8.2.2 version and is up to date.