invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
702 stars 142 forks source link

Execution failed for task ':react-native-google-mobile-ads:compileDebugJavaWithJavac'. #122

Closed Waseem6409 closed 2 years ago

Waseem6409 commented 2 years ago

Issue

Describe your issue here

Failed to start the application as it fails on build, error is as follows

D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\RCTConvert.java:1: error: cannot access io.invertase.googlemobileads.common package io.invertase.googlemobileads.common; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\interfaces\ContextProvider.java:1: error: cannot access io.invertase.googlemobileads.interfaces package io.invertase.googlemobileads.interfaces; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeAppModule.java:1: error: cannot access io.invertase.googlemobileads package io.invertase.googlemobileads; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:23: error: cannot access java.lang public class ReactNativeApp { ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:24: error: cannot find symbol private static Context applicationContext; ^ symbol: class Context location: class ReactNativeApp D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:26: error: cannot find symbol public static Context getApplicationContext() { ^ symbol: class Context location: class ReactNativeApp D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:30: error: cannot find symbol public static void setApplicationContext(Context applicationContext) { ^ symbol: class Context location: class ReactNativeApp D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:23: error: cannot access io.invertase public class ReactNativeEvent implements NativeEvent { ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:23: error: cannot find symbol public class ReactNativeEvent implements NativeEvent { ^ symbol: class NativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:25: error: cannot find symbol private WritableMap eventBody; ^ symbol: class WritableMap location: class ReactNativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:27: error: cannot find symbol public ReactNativeEvent(String eventName, WritableMap eventBody) { ^ symbol: class WritableMap location: class ReactNativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:38: error: cannot find symbol public WritableMap getEventBody() { ^ symbol: class WritableMap location: class ReactNativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:33: error: cannot access io public class ReactNativeEventEmitter { ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:35: error: cannot find symbol private final List queuedEvents = new ArrayList<>(); ^ symbol: class List location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:35: error: cannot find symbol private final List queuedEvents = new ArrayList<>(); ^ symbol: class NativeEvent location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:36: error: cannot find symbol private final Handler handler = new Handler(Looper.getMainLooper()); ^ symbol: class Handler location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:37: error: cannot find symbol private final HashMap<String, Integer> jsListeners = new HashMap<>(); ^ symbol: class HashMap location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:38: error: cannot find symbol private ReactContext reactContext; ^ symbol: class ReactContext location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:46: error: cannot find symbol public void attachReactContext(final ReactContext reactContext) { ^ symbol: class ReactContext location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:62: error: cannot find symbol public void sendEvent(final NativeEvent event) { ^ symbol: class NativeEvent location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:103: error: cannot find symbol public WritableMap getListenersMap() { ^ symbol: class WritableMap location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:134: error: cannot find symbol private boolean emit(final NativeEvent event) { ^ symbol: class NativeEvent location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:20: error: cannot access android import android.content.ContentProvider; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:20: error: cannot access android.content import android.content.ContentProvider; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:20: error: import requires canonical name for ContentProvider import android.content.ContentProvider; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:23: error: cannot access android.content.pm import android.content.pm.ProviderInfo; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:24: error: cannot access android.database import android.database.Cursor; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:25: error: cannot access android.net import android.net.Uri; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:26: error: cannot access androidx import androidx.annotation.Nullable; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:26: error: cannot access androidx.annotation import androidx.annotation.Nullable; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:26: error: import requires canonical name for Nullable import androidx.annotation.Nullable; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:27: error: cannot access javax import javax.annotation.OverridingMethodsMustInvokeSuper; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:27: error: cannot access javax.annotation import javax.annotation.OverridingMethodsMustInvokeSuper; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:27: error: import requires canonical name for OverridingMethodsMustInvokeSuper import javax.annotation.OverridingMethodsMustInvokeSuper; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:29: error: cannot find symbol public class ReactNativeInitProvider extends ContentProvider { ^ symbol: class ContentProvider D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:20: error: cannot access com import com.facebook.react.bridge.Arguments; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:20: error: cannot access com.facebook import com.facebook.react.bridge.Arguments; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:20: error: import requires canonical name for Arguments import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:21: error: cannot access com.facebook.react import com.facebook.react.bridge.WritableMap; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:21: error: cannot access com.facebook.react.bridge import com.facebook.react.bridge.WritableMap; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:21: error: import requires canonical name for WritableMap import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:23: error: cannot access java import java.util.ArrayList; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:23: error: cannot access java.util import java.util.ArrayList; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:23: error: import requires canonical name for ArrayList import java.util.ArrayList; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:24: error: cannot access org import org.json.JSONArray; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:24: error: cannot access org.json import org.json.JSONArray; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:24: error: import requires canonical name for JSONArray import org.json.JSONArray; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:70: error: cannot find symbol public ArrayList getArrayValue(String key) { ^ symbol: class ArrayList location: class ReactNativeJSON D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:92: error: cannot find symbol public WritableMap getAll() { ^ symbol: class WritableMap location: class ReactNativeJSON D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:23: error: cannot access android.os import android.os.Bundle; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:24: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:25: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:72: error: cannot find symbol public WritableMap getAll() { ^ symbol: class WritableMap location: class ReactNativeMeta D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:20: error: cannot access android.app import android.app.Activity; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:23: error: cannot find symbol import io.invertase.googlemobileads.interfaces.ContextProvider; ^ symbol: class ContextProvider location: package io.invertase.googlemobileads.interfaces D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:26: error: cannot access java.util.concurrent import java.util.concurrent.ExecutorService; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:27: error: package javax.annotation does not exist import javax.annotation.Nonnull; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:29: error: cannot find symbol public class ReactNativeModule extends ReactContextBaseJavaModule implements ContextProvider { ^ symbol: class ReactContextBaseJavaModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:29: error: cannot find symbol public class ReactNativeModule extends ReactContextBaseJavaModule implements ContextProvider { ^ symbol: class ContextProvider D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:34: error: cannot find symbol public ReactNativeModule(ReactApplicationContext reactContext, String moduleName) { ^ symbol: class ReactApplicationContext location: class ReactNativeModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:40: error: cannot find symbol public static void rejectPromiseWithCodeAndMessage(Promise promise, String code, String message) { ^ symbol: class Promise location: class ReactNativeModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:52: error: cannot find symbol public ReactContext getContext() { ^ symbol: class ReactContext location: class ReactNativeModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:22: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativePreferences.java:22: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativePreferences.java:23: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativePreferences.java:63: error: cannot find symbol public WritableMap getAll() { ^ symbol: class WritableMap location: class ReactNativePreferences D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:22: error: cannot access android.graphics import android.graphics.Point; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:26: error: cannot access android.util import android.util.Log; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:28: error: cannot access com.facebook.react.common import com.facebook.react.common.LifecycleState; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:28: error: package com.facebook.react.common does not exist import com.facebook.react.common.LifecycleState; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:29: error: cannot access com.facebook.react.modules import com.facebook.react.modules.core.DeviceEventManagerModule; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:29: error: cannot access com.facebook.react.modules.core import com.facebook.react.modules.core.DeviceEventManagerModule; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:29: error: import requires canonical name for DeviceEventManagerModule import com.facebook.react.modules.core.DeviceEventManagerModule; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:30: error: cannot access java.io import java.io.File; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:31: error: cannot access java.text import java.text.SimpleDateFormat; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:33: error: package javax.annotation does not exist import javax.annotation.Nullable; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:93: error: cannot find symbol public static void sendEvent(final ReactContext context, final String eventName, Object body) { ^ symbol: class ReactContext location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:241: error: cannot find symbol public static WritableMap jsonObjectToWritableMap(JSONObject jsonObject) throws JSONException { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:266: error: cannot find symbol public static WritableArray jsonArrayToWritableArray(JSONArray jsonArray) throws JSONException { ^ symbol: class WritableArray location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:288: error: cannot find symbol public static WritableMap mapToWritableMap(Map<String, Object> value) { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:298: error: cannot find symbol private static WritableArray listToWritableArray(List objects) { ^ symbol: class WritableArray location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:307: error: cannot find symbol public static void arrayPushValue(@Nullable Object value, WritableArray array) { ^ symbol: class WritableArray location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:362: error: cannot find symbol public static void mapPutValue(String key, @Nullable Object value, WritableMap map) { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:422: error: cannot find symbol public static WritableMap readableMapToWritableMap(ReadableMap map) { ^ symbol: class ReadableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:422: error: cannot find symbol public static WritableMap readableMapToWritableMap(ReadableMap map) { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:27: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\interfaces\NativeError.java:20: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\interfaces\NativeError.java:27: error: cannot find symbol WritableMap getUserInfo(); ^ symbol: class WritableMap location: interface NativeError D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\interfaces\NativeEvent.java:20: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\interfaces\NativeEvent.java:25: error: cannot find symbol WritableMap getEventBody(); ^ symbol: class WritableMap location: interface NativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:22: error: cannot access android.view import android.view.Display; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:23: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:24: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactContext; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:25: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReadableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:26: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:27: error: cannot access com.facebook.react.views import com.facebook.react.views.view.ReactViewGroup; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:27: error: cannot access com.facebook.react.views.view import com.facebook.react.views.view.ReactViewGroup; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:27: error: import requires canonical name for ReactViewGroup import com.facebook.react.views.view.ReactViewGroup; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:28: error: cannot access com.google import com.google.ads.mediation.admob.AdMobAdapter; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:28: error: cannot access com.google.ads import com.google.ads.mediation.admob.AdMobAdapter; ^ zip END header not found Note: D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsConsentModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 100 errors

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-google-mobile-ads:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for 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 34s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 error: error reading C:\Users\Waseem.gradle\caches\transforms-3\1007ab39e53cd5aa6f7f0e07337cf28c\transformed\jetified-listenablefuture-1.0.jar; zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\RCTConvert.java:1: error: cannot access io.invertase.googlemobileads.common package io.invertase.googlemobileads.common; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\interfaces\ContextProvider.java:1: error: cannot access io.invertase.googlemobileads.interfaces package io.invertase.googlemobileads.interfaces; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeAppModule.java:1: error: cannot access io.invertase.googlemobileads package io.invertase.googlemobileads; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:23: error: cannot access java.lang public class ReactNativeApp { ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:24: error: cannot find symbol private static Context applicationContext; ^ symbol: class Context location: class ReactNativeApp D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:26: error: cannot find symbol public static Context getApplicationContext() { ^ symbol: class Context location: class ReactNativeApp D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeApp.java:30: error: cannot find symbol public static void setApplicationContext(Context applicationContext) { ^ symbol: class Context location: class ReactNativeApp D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:23: error: cannot access io.invertase public class ReactNativeEvent implements NativeEvent { ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:23: error: cannot find symbol public class ReactNativeEvent implements NativeEvent { ^ symbol: class NativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:25: error: cannot find symbol private WritableMap eventBody; ^ symbol: class WritableMap location: class ReactNativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:27: error: cannot find symbol public ReactNativeEvent(String eventName, WritableMap eventBody) { ^ symbol: class WritableMap location: class ReactNativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEvent.java:38: error: cannot find symbol public WritableMap getEventBody() { ^ symbol: class WritableMap location: class ReactNativeEvent D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:33: error: cannot access io public class ReactNativeEventEmitter { ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:35: error: cannot find symbol private final List queuedEvents = new ArrayList<>(); ^ symbol: class List location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:35: error: cannot find symbol private final List queuedEvents = new ArrayList<>(); ^ symbol: class NativeEvent location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:36: error: cannot find symbol private final Handler handler = new Handler(Looper.getMainLooper()); ^ symbol: class Handler location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:37: error: cannot find symbol private final HashMap<String, Integer> jsListeners = new HashMap<>(); ^ symbol: class HashMap location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:38: error: cannot find symbol private ReactContext reactContext; ^ symbol: class ReactContext location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:46: error: cannot find symbol public void attachReactContext(final ReactContext reactContext) { ^ symbol: class ReactContext location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:62: error: cannot find symbol public void sendEvent(final NativeEvent event) { ^ symbol: class NativeEvent location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:103: error: cannot find symbol public WritableMap getListenersMap() { ^ symbol: class WritableMap location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeEventEmitter.java:134: error: cannot find symbol private boolean emit(final NativeEvent event) { ^ symbol: class NativeEvent location: class ReactNativeEventEmitter D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:20: error: cannot access android import android.content.ContentProvider; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:20: error: cannot access android.content import android.content.ContentProvider; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:20: error: import requires canonical name for ContentProvider import android.content.ContentProvider; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:23: error: cannot access android.content.pm import android.content.pm.ProviderInfo; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:24: error: cannot access android.database import android.database.Cursor; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:25: error: cannot access android.net import android.net.Uri; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:26: error: cannot access androidx import androidx.annotation.Nullable; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:26: error: cannot access androidx.annotation import androidx.annotation.Nullable; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:26: error: import requires canonical name for Nullable import androidx.annotation.Nullable; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:27: error: cannot access javax import javax.annotation.OverridingMethodsMustInvokeSuper; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:27: error: cannot access javax.annotation import javax.annotation.OverridingMethodsMustInvokeSuper; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:27: error: import requires canonical name for OverridingMethodsMustInvokeSuper import javax.annotation.OverridingMethodsMustInvokeSuper; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeInitProvider.java:29: error: cannot find symbol public class ReactNativeInitProvider extends ContentProvider { ^ symbol: class ContentProvider D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:20: error: cannot access com import com.facebook.react.bridge.Arguments; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:20: error: cannot access com.facebook import com.facebook.react.bridge.Arguments; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:20: error: import requires canonical name for Arguments import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:21: error: cannot access com.facebook.react import com.facebook.react.bridge.WritableMap; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:21: error: cannot access com.facebook.react.bridge import com.facebook.react.bridge.WritableMap; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:21: error: import requires canonical name for WritableMap import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:23: error: cannot access java import java.util.ArrayList; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:23: error: cannot access java.util import java.util.ArrayList; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:23: error: import requires canonical name for ArrayList import java.util.ArrayList; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:24: error: cannot access org import org.json.JSONArray; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:24: error: cannot access org.json import org.json.JSONArray; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:24: error: import requires canonical name for JSONArray import org.json.JSONArray; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:70: error: cannot find symbol public ArrayList getArrayValue(String key) { ^ symbol: class ArrayList location: class ReactNativeJSON D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeJSON.java:92: error: cannot find symbol public WritableMap getAll() { ^ symbol: class WritableMap location: class ReactNativeJSON D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:23: error: cannot access android.os import android.os.Bundle; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:24: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:25: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeMeta.java:72: error: cannot find symbol public WritableMap getAll() { ^ symbol: class WritableMap location: class ReactNativeMeta D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:20: error: cannot access android.app import android.app.Activity; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:23: error: cannot find symbol import io.invertase.googlemobileads.interfaces.ContextProvider; ^ symbol: class ContextProvider location: package io.invertase.googlemobileads.interfaces D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:26: error: cannot access java.util.concurrent import java.util.concurrent.ExecutorService; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:27: error: package javax.annotation does not exist import javax.annotation.Nonnull; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:29: error: cannot find symbol public class ReactNativeModule extends ReactContextBaseJavaModule implements ContextProvider { ^ symbol: class ReactContextBaseJavaModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:29: error: cannot find symbol public class ReactNativeModule extends ReactContextBaseJavaModule implements ContextProvider { ^ symbol: class ContextProvider D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:34: error: cannot find symbol public ReactNativeModule(ReactApplicationContext reactContext, String moduleName) { ^ symbol: class ReactApplicationContext location: class ReactNativeModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:40: error: cannot find symbol public static void rejectPromiseWithCodeAndMessage(Promise promise, String code, String message) { ^ symbol: class Promise location: class ReactNativeModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:52: error: cannot find symbol public ReactContext getContext() { ^ symbol: class ReactContext location: class ReactNativeModule D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativeModule.java:22: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.*; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativePreferences.java:22: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativePreferences.java:23: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\ReactNativePreferences.java:63: error: cannot find symbol public WritableMap getAll() { ^ symbol: class WritableMap location: class ReactNativePreferences D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:22: error: cannot access android.graphics import android.graphics.Point; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:26: error: cannot access android.util import android.util.Log; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:28: error: cannot access com.facebook.react.common import com.facebook.react.common.LifecycleState; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:28: error: package com.facebook.react.common does not exist import com.facebook.react.common.LifecycleState; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:29: error: cannot access com.facebook.react.modules import com.facebook.react.modules.core.DeviceEventManagerModule; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:29: error: cannot access com.facebook.react.modules.core import com.facebook.react.modules.core.DeviceEventManagerModule; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:29: error: import requires canonical name for DeviceEventManagerModule import com.facebook.react.modules.core.DeviceEventManagerModule; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:30: error: cannot access java.io import java.io.File; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:31: error: cannot access java.text import java.text.SimpleDateFormat; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:33: error: package javax.annotation does not exist import javax.annotation.Nullable; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:93: error: cannot find symbol public static void sendEvent(final ReactContext context, final String eventName, Object body) { ^ symbol: class ReactContext location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:241: error: cannot find symbol public static WritableMap jsonObjectToWritableMap(JSONObject jsonObject) throws JSONException { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:266: error: cannot find symbol public static WritableArray jsonArrayToWritableArray(JSONArray jsonArray) throws JSONException { ^ symbol: class WritableArray location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:288: error: cannot find symbol public static WritableMap mapToWritableMap(Map<String, Object> value) { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:298: error: cannot find symbol private static WritableArray listToWritableArray(List objects) { ^ symbol: class WritableArray location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:307: error: cannot find symbol public static void arrayPushValue(@Nullable Object value, WritableArray array) { ^ symbol: class WritableArray location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:362: error: cannot find symbol public static void mapPutValue(String key, @Nullable Object value, WritableMap map) { ^ symbol: class WritableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:422: error: cannot find symbol public static WritableMap readableMapToWritableMap(ReadableMap map) { ^ symbol: class ReadableMap location: class SharedUtils D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\common\SharedUtils.java:422: error: cannot find symbol public static WritableMap readableMapToWritableMap(ReadableMap map) { ^ symbol: class WritableMap location: class SharedUtils

import android.view.Display; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:23: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:24: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactContext; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:25: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReadableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:26: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:27: error: cannot access com.facebook.react.views import com.facebook.react.views.view.ReactViewGroup; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:27: error: cannot access com.facebook.react.views.view import com.facebook.react.views.view.ReactViewGroup; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:27: error: import requires canonical name for ReactViewGroup import com.facebook.react.views.view.ReactViewGroup; ^ D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:28: error: cannot access com.google import com.google.ads.mediation.admob.AdMobAdapter; ^ zip END header not found D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsCommon.java:28: error: cannot access com.google.ads import com.google.ads.mediation.admob.AdMobAdapter; ^ zip END header not found Note: D:\Codes\Matt-Quiz\Mobile\node_modules\react-native-google-mobile-ads\android\src\main\java\io\invertase\googlemobileads\ReactNativeGoogleMobileAdsConsentModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 100 errors

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-google-mobile-ads:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.


Project Files

Javascript

Click To Expand

#### `package.json`: ```json { "name": "mattquizmobile", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@react-native-async-storage/async-storage": "^1.16.1", "@react-native-google-signin/google-signin": "^7.2.1", "@react-native-masked-view/masked-view": "^0.2.6", "@react-navigation/native": "^6.0.8", "@react-navigation/stack": "^6.1.1", "axios": "^0.26.0", "react": "17.0.2", "react-native": "0.67.2", "react-native-gesture-handler": "^2.2.0", "react-native-google-mobile-ads": "^6.0.0", "react-native-image-viewing": "^0.2.1", "react-native-safe-area-context": "^3.4.0", "react-native-screens": "^3.12.0", "react-native-spinkit": "^1.5.1", "react-native-vector-icons": "^9.1.0", "react-redux": "^7.2.6", "redux": "^4.1.2", "redux-thunk": "^2.4.1", "validator": "^13.7.0" }, "devDependencies": { "@babel/core": "^7.17.5", "@babel/runtime": "^7.17.2", "@react-native-community/eslint-config": "^3.0.1", "babel-jest": "^27.5.1", "eslint": "8.9.0", "jest": "^27.5.1", "metro-react-native-babel-preset": "^0.68.0", "react-test-renderer": "17.0.2" }, "jest": { "preset": "react-native" } } ``` #### `admob.json`: ```json # N/A ```

iOS

Click To Expand

#### `ios/Podfile`: ```ruby # N/A ``` --- ### Android

Click To Expand

#### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `AndroidManifest.xml`: ```xml ```

--- ## Environment
Click To Expand

**`react-native info` output:** ``` OUTPUT GOES HERE ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **Are you using `TypeScript`?** - `Y/N` & `VERSION`

--- - 👉 Check out [`Invertase`](https://twitter.com/invertaseio) on Twitter for updates on the library.
mikehardy commented 2 years ago

With apologies, this is a low quality issue and I will close it.

Something about your integration or local environment is wrong.

Did you search online? The first hit indicates you have a corrupt cache https://search.brave.com/search?q=zip+END+header+not+found&source=desktop https://stackoverflow.com/questions/52411697/intellij-compilation-error-zip-end-header-not-found

Perhaps npx react-native-clean-project will help you

In future please: https://hackernoon.com/i-thought-i-understood-open-source-i-was-wrong-cf54999c097b https://stackoverflow.com/help/how-to-ask https://stackoverflow.com/help/minimal-reproducible-example