I need to build an Android app using Cordova.
I have installed on my machine (Windows 10): Cordova 10.0.0, OpenJDK 8, latest version of Gradle, Android Studio 4.1.1 and Android 10 & 11 SDK.
I've tried creating a new Cordova app and build that to see if I had any problems with the installed plugins, but nothing, same error as in the main project.
Here's the error:
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: C:UsersjoaomAppDataLocalAndroidsdk
Reading build config file: C:UsersjoaomDesktopcg4u
ativeuild.json
Subproject Path: CordovaLib
Subproject Path: app
> Task :CordovaLib:processDebugManifest FAILED
Error 'C:UsersjoaomDesktopcg4u
ativeplatformsandroidCordovaLibuildoutputslogsmanifest-merger-debug-report.txt (Access is denied)' while writing the merger report file, build can continue but merging activities will not be documented
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> java.io.FileNotFoundException: C:UsersjoaomDesktopcg4u
ativeplatformsandroidCordovaLibuildintermediatesmanifest_merge_blame_filedebugmanifest-merger-blame-debug-report.txt (Access is denied)
* 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 5s
12 actionable tasks: 2 executed, 10 up-to-date
Command failed with exit code 1: C:UsersjoaomDesktopcg4u
ativeplatformsandroidgradlew cdvBuildDebug -b C:UsersjoaomDesktopcg4u
ativeplatformsandroiduild.gradle
Here's my Cordova requirements:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-30,android-29
Gradle: installed C:Program FilesGradlegradle-6.8ingradle.BAT
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…