Код: Выделить всё
"react-native-maps": "^1.15.1",
"react": "17.0.2",
"react-native": "^0.68.0",
Код: Выделить всё
> Task :app:compileDebugJavaWithJavac
WARNING: Using '--release' option could cause issues when using Android Gradle Plugin to compile sources with Java 9+. Instead, please set 'sourceCompatibility' and 'targetCompatibility' to the desired Java version, and set 'compileSdkVersion' to 30 or above. See https://developer.android.com/studio/releases/gradle-plugin#java-11
D:\RN\RNAppWithAuth\Lyfter\android\app\src\main\java\com\lyfter\MainApplication.java:17: error: package com.airbnb.android.react.maps does not exist
import com.airbnb.android.react.maps.MapsPackage;
^
D:\RN\RNAppWithAuth\Lyfter\android\app\src\main\java\com\lyfter\MainApplication.java:25: error: cannot find symbol
return BuildConfig.DEBUG;
^
symbol: variable BuildConfig
D:\RN\RNAppWithAuth\Lyfter\android\app\src\main\java\com\lyfter\MainApplication.java:65: error: cannot find symbol
if (BuildConfig.DEBUG) {
^
symbol: variable BuildConfig
location: class MainApplication
Note: D:\RN\RNAppWithAuth\Lyfter\android\app\src\debug\java\com\lyfter\ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
> Task :app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.```
Я использую версию ниже плагина gradle и andorid gradle
Код: Выделить всё
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zipКод: Выделить всё
classpath("com.android.tools.build:gradle:8.3.1")Я пробовал несколько способов исправить это, например, добавив строку реализации в зависимости, но ничего не помогло.
Код: Выделить всё
implementation project(':react-native-maps')Подробнее здесь: https://stackoverflow.com/questions/785 ... ve-android
Мобильная версия