Полная ошибка: (текст, где началась ошибка; пропуск текстов выше ошибки, которая работала нормально)
Код: Выделить всё
> Task :app:createBundleReleaseJsAndAssets
Android Bundled 1737ms node_modules/expo/AppEntry.js (1002 modules)
Writing bundle output to: /home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
Writing sourcemap output to: /home/expo/workingdir/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
Copying 19 asset files
Done writing bundle output
Done writing sourcemap output
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:3899:16: warning: the variable "SharedArrayBuffer" was not declared in function "from"
if (typeof SharedArrayBuffer !== 'undefined' && (isInstance(value, Shared...
^~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:7788:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.sh...
^~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:18162:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
setTimeout(function () {
^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16396:31: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 392#"
var _nativeFabricUIManage = nativeFabricUIManager,
^~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16424:21: warning: the variable "clearTimeout" was not declared in anonymous function " 392#"
cancelTimeout = clearTimeout;
^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16437:51: warning: the variable "RN$enableMicrotasksInReact" was not declared in anonymous function " 392#"
... "undefined" !== typeof RN$enableMicrotasksInReact && !!RN$enableMicrotask...
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:16438:47: warning: the variable "queueMicrotask" was not declared in anonymous function " 392#"
...otask = "function" === typeof queueMicrotask ? queueMicrotask : scheduleTi...
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20859:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 392#"
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22295:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25569:5: warning: the variable "fetch" was not declared in anonymous function " 615#"
fetch,
^~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25570:5: warning: the variable "Headers" was not declared in anonymous function " 615#"
Headers,
^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25571:5: warning: the variable "Request" was not declared in anonymous function " 615#"
Request,
^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25572:5: warning: the variable "Response" was not declared in anonymous function " 615#"
Response
^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25729:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25784:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 626#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25903:26: warning: the variable "AbortController" was not declared in anonymous function " 632#"
var ctrl = new AbortController();
^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:26037:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 636#"
var xhr = new XMLHttpRequest();
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25582:71: warning: the variable "self" was not declared in anonymous function " 618#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
^~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28452:26: warning: the variable "navigator" was not declared in anonymous function " 795#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
^~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28562:37: warning: the variable "MessageChannel" was not declared in anonymous function " 795#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:28577:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 795#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
^~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:38446:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
... this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:60786:9: warning: the variable "REACT_NAVIGATION_DEVTOOLS" was not declared in anonymous arrow function " 2084#"
REACT_NAVIGATION_DEVTOOLS.set(refContainer.current, {
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:77439:18: warning: the variable "document" was not declared in anonymous arrow function " 2767#"
if (typeof document === 'undefined' || !document.body) {
^~~~~~~~
> Task :react-native-async-storage_async-storage:compileReleaseJavaWithJavac
/home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:84: warning: [removal] onCatalystInstanceDestroy() in NativeModule has been deprecated and marked for removal
public void onCatalystInstanceDestroy() {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
> Task :expo-modules-core:javaPreCompileRelease
> Task :react-native-async-storage_async-storage:bundleLibCompileToJarRelease
> Task :react-native-gesture-handler:javaPreCompileRelease
> Task :react-native-google-mobile-ads:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-google-mobile-ads:generateReleaseBuildConfig
> Task :react-native-google-mobile-ads:compileReleaseKotlin FAILED
e: file:///home/expo/.gradle/caches/8.10.2/transforms/0f262434e30664f9af0830e05b984c69/transformed/play-services-ads-24.1.0-api.jar!/META-INF/java.com.google.android.gms.libs.filecompliance.proto_file_access_api_type_kt_proto_lite.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: file:///home/expo/.gradle/caches/8.10.2/transforms/0f262434e30664f9af0830e05b984c69/transformed/play-services-ads-24.1.0-api.jar!/META-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_only_for_use_in_proto_generated_code_its_generator_and_tests.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: file:///home/expo/.gradle/caches/8.10.2/transforms/0f262434e30664f9af0830e05b984c69/transformed/play-services-ads-24.1.0-api.jar!/META-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_shared_runtime.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
> Task :react-native-gesture-handler:compileReleaseKotlin
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt:69:42 'constructor ReactModuleInfo(String, String, Boolean, Boolean, Boolean, Boolean, Boolean)' is deprecated. use ReactModuleInfo(String, String, boolean, boolean, boolean, boolean)]
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt:25:26 Parameter 'event' is never used
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt:72:62 The corresponding parameter in the supertype 'ViewGroupManager' is named 'borderRadius'. This may cause problems when calling this function with named arguments.
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt:77:63 The corresponding parameter in the supertype 'ViewGroupManager' is named 'borderRadius'. This may cause problems when calling this function with named arguments.
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt:82:65 The corresponding parameter in the supertype 'ViewGroupManager' is named 'borderRadius'. This may cause problems when calling this function with named arguments.
w: file:///home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt:87:66 The corresponding parameter in the supertype 'ViewGroupManager' is named 'borderRadius'. This may cause problems when calling this function with named arguments.
> Task :app:checkReleaseAarMetadata
> Task :expo-modules-core:compileReleaseKotlin
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-google-mobile-ads:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* 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 2m 25s
244 actionable tasks: 244 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
< /code>
tresh: < /p>
[list]
[*]npx expo-doctor
[*]
Код: Выделить всё
npx expo prebuild --clean
[*] Удаление Expo-Splash-Screen
[*]
Код: Выделить всё
npx expo install --check
Я пробовал все предлагаемые решения, но ни одна из них не исправил проблему, любая помощь будет оценена. 'Rngooglemobileadsmodule' не может быть найден. Убедитесь, что модуль от этого имени зарегистрирован в нативном двоичном. . Тем не менее, это должно быть хорошо, так как React-Native-Ad-Manager до сих пор не поддерживается Expo Go. Еще одна вещь, которую следует отметить, это то, что я не использую Android SDK, так как Expo CLI обрабатывает все, поэтому я не запускал NPX Expo Run: Android .
Подробнее здесь: https://stackoverflow.com/questions/795 ... e-run-grad