Сборка apk из нативной реакции не удалась со следующими ошибками

avatar
Rahul Kumar Choudhary
9 августа 2021 в 04:36
114
0
1

сборка apk использовала следующее для сборки React Native

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/ приложение/src/main/res

cd android

./gradlew assembleDebug

Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #0: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #1: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #2: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #6: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #3: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #4: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #7: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.0-6503028-osx Daemon #5: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
Источник
Kushal Desai
9 августа 2021 в 06:25
0

Попробуйте очистить проект: «cd android && ./gradlew clean»

Rahul Kumar Choudhary
9 августа 2021 в 06:43
0

@KushalDesai применил, но все еще получает ту же ошибку

Kushal Desai
9 августа 2021 в 06:45
0

Попробуйте эту команду в корневой папке после очистки: -assets-dest android/app/src/main/res

Rahul Kumar Choudhary
9 августа 2021 в 06:57
0

@KushalDesai сделал, но все еще получает ту же ошибку

Zeeshan Ahmad Khalil
9 августа 2021 в 07:28
0

похоже на проблему с реактивной нативной установкой.

Ответы (0)