English 中文(简体)
Indigenous React - VSroom Code - npmpr android - Punishment for mission :app:checkDebugAarMetadata
原标题:Native React - VS Studio Code - npm run android - Execution failed for task :app:checkDebugAarMetadata

I have been getting this error when trying to run npm android build on my native react project. I have gone through the entire android setup along with updating Environment variables. The emulator works but the install fails with the following message:

     What went wrong:                                                                                                                                    
Execution failed for task  :app:checkDebugAarMetadata .                                                                                               
> Could not resolve all files for configuration  :app:debugRuntimeClasspath .
   > Failed to transform react-android-0.72.6-debug.aar (com.facebook.react:react-android:0.72.6) to match attributes {artifactType=android-aar-metadata, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtimeiii.
      > Execution failed for JetifyTransform: C:UsersBenTo.gradlecachesmodules-2files-2.1com.facebook.react
eact-android.72.62e2db118c9084b05c1a5d6079148bc983668f372
eact-android-0.72.6-debug.aar.

build.gradle as follows:

buildscript {
ext {
    buildToolsVersion = "33.0.0"
    minSdkVersion = 21
    compileSdkVersion = 33
    targetSdkVersion = 33

    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
    ndkVersion = "23.1.7779620"
iii
repositories {
    google()
    mavenCentral()
iii
dependencies {
    classpath("com.android.tools.build:gradle")
    classpath( com.facebook.react:react-native-gradle-plugin )
iii

iii

我也开了反应医生,显示:

    Android
 ✓ Adb - Required to verify if the android device is attached correctly
 ✓ JDK - Required to compile Java code
 ✓ Android Studio - Required for building and installing your app on Android
 ✖ Android SDK - Required for building and installing your app on Android
   - Versions found: N/A
   - Version supported: 33.0.0
 ✓ ANDROID_HOME - Environment variable that points to your Android SDK installation

Errors:   1
Warnings: 0

Usage
 › Press f to try to fix issues.
 › Press e to try to fix errors.
 › Press w to try to fix warnings.
 › Press Enter to exit.

当我要求解决时,它表明这些问题是固定的并重新开始。 当我重新开会时,我也遇到同样的错误。

请提供帮助。

问题回答

暂无回答




相关问题
Android emulator alternative

I m completely new to Android development, but I just got a HTC Hero and would like to develop a few applications for it. However, I ve use a laptop as my dev machine and the emulator is extremely ...

Getting my app to work on my phone

I wrote an app android sdk version 1.5 using it s built in emulator in eclipse. I created a database outside of eclipse populated it with data and push it to the emulator folder data/data/project name/...

how to run android emulator with TTS enabled

i hope i am not posting a duplicate question, can anyone please tell me how to enable TTS in android emulator enabled when eclipse starts it when we run the project. is it that i have to start with ...

Android: difference in ACTION_SEND between api level 2 and 5?

I have an android app that wants to initiate an email. The following code works in an api level 5 emulator, but not on a level 2 emulator or device: Intent emailIntent = new Intent(android.content....

Android Videoview video not seen

I am using Videoview to playback mp4 file from local machine using android emulator. I hear the audio, but the screen is blank and no video is seen. Android SDK 2.0.1 Does anyone have an idea what is ...

Android - Having a hard time debuging Eclipse

I am a little bit new to developing for Android using Eclipse (Coming from a .NET/Visual Studio background). My biggest problem in developing Android app is "debugging" them. Every time the emulator ...

热门标签