i am new in web,android development world.
i am getting started a project in Capacitor js , followed the instructions in documentation when i run cap run android its crushed
Running Gradle build – failed!
[error] Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not
be reused, use –status for details
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:8.2.1.
Required by:
project :
> No matching variant of com.android.tools.build:gradle:8.2.1 was found.
The consumer was configured to find a library for use during runtime,
compatible with Java 8, packaged as a jar, and its dependencies declared
externally, as well as attribute 'org.gradle.plugin.api-version' with
value '8.2.1' but:
- Variant 'apiElements' capability com.android.tools.build:gradle:8.2.1
declares a library, packaged as a jar, and its dependencies declared
its work on android studio.
windows 11
in my environment variables i have:
ANDROID HOME : C:UsersuserAppDataLocalAndroidSdk
path: C:Program FilesJavajdk-20
C:Program FilesJavajdk-20bin
C:Program FilesJavajre-1.8
JAVA HOME C:Program FilesJavajre-1.8
i expect to have a solutions
ourwa svu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.