У меня есть нативное приложение для Android. Когда я собрал файл apk с помощью ./gradlew assembleRelease -x BundleReleaseJsAndAssets, все прошло нормально, но после этого он вообще перестал компилироваться. Даже run-android больше не работает.
Что я нашел на данный момент:
Во-первых, ошибка вот в чем:
Код: Выделить всё
Task :app:processDebugResources FAILED
resource android:attr/fontVariationSettings not found.
resource android:attr/ttcIndex not found.
Код: Выделить всё
android.useAndroidX=true
android.enableJetifier=true
Код: Выделить всё
Task :@JWWon_react-native-universal-pedometer:compileDebugJavaWithJavac FAILED
error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
cannot find symbol
private void sendPedometerUpdateEvent(@Nullable WritableMap params) {
^
symbol: class Nullable
location: class BMDPedometerModule
Код: Выделить всё
Task :@react-native-community_netinfo:compileDebugJavaWithJavac FAILED
error: package android.support.v4.net does not exist
import android.support.v4.net.ConnectivityManagerCompat;
error: cannot find symbol
promise.resolve(ConnectivityManagerCompat.isActiveNetworkMetered(getConnectivityManager()));
^
symbol: variable ConnectivityManagerCompat
location: class ConnectivityReceiver
2 errors
Код: Выделить всё
Task :react-native-camera-kit:compileDebugJavaWithJavac FAILED
package android.support.annotation does not exist
import android.support.annotation.ColorInt;
^
package android.support.annotation does not exist
import android.support.annotation.IntRange;
^
...
92 errors
Код: Выделить всё
react-native-camera-kit
@react-native-community_netinfo
react-native-push-notification
react-native-sensors
@JWWon_react-native-universal-pedometer
react-native-keep-awake
react-native-toast-native
Подробнее здесь: https://stackoverflow.com/questions/566 ... -not-exist