I upgraded expo 32 to 33 (Expokit).
When i run installDebug i am getting multiple Nullable errors of expo-av (Pl
ayerDataControl.java:4: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;) in sdk 33 expokit.
but i dont need Exo player in my project.
Even I put expo-av moudle in exlude part as here
addUnimodulesDependencies([
modulesPaths : [
'../../node_modules'
],
configuration: 'api',
target : 'react-native',
exclude : [
// You can exclude unneeded modules here.
// By default we exclude FaceDetector
// and Stripe payments APIs.
'unimodules-face-detector-interface',
'expo-face-detector',
'expo-payments-stripe',
'expo-av' //<----------------------------------------------
// Adding a name here will also remove the package
// from auto-generated BasePackageList.java
]
])
and getting the errors.
Task :expo-av:compileDebugJavaWithJavac
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/player/Pl
ayerDataControl.java:4: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/Vid
eoView.java:6: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/VideoViewWrapper.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/FullscreenVideoPlayerPresentationChangeProgressListener.java:3: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/FullscreenVideoPlayer.java:6: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/VideoManager.java:4: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/player/da
tasource/CustomHeadersOkHttpDataSourceFactory.java:3: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/player/da
tasource/CustomHeadersOkHttpDataSourceFactory.java:4: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/player/Me
diaPlayerData.java:10: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
^
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/player/Pl
ayerDataControl.java:10: error: cannot find symbol
public PlayerDataControl(final @NonNull PlayerData playerData) {
^
symbol: class NonNull
location: class PlayerDataControl
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/VideoView.java:66: error: cannot find symbol
public VideoView(@NonNull Context context, VideoViewWrapper videoViewWrapper, ModuleRegistry moduleRegistry) {
^
symbol: class NonNull
location: class VideoView
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/VideoViewWrapper.java:20: error: cannot find symbol
public VideoViewWrapper(@NonNull Context context, ModuleRegistry moduleRegistry) {
^
symbol: class NonNull
location: class VideoViewWrapper
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/node_modules/expo-av/android/src/main/java/expo/modules/av/video/FullscreenVideoPlayerPresentationChangeProgressListener.java:22: error: cannot find symbol
void onFullscreenPlayerPresentationError(@Nullable String errorMessage) {}
^
symbol: class Nullable
location: class FullscreenVideoPlayerPresentationChangeProgressListener
/home/lamzing/Desktop/WORK_FOLDER/3th_June_TOI/toimobile/tasteofimphal/node_modules/expo-av/android/src/main/java/expo/modules/av/video/FullscreenVideoPlayer.java:60: error: cannot find symbol
FullscreenVideoPlayer(@NonNull Context context, VideoView videoView, ModuleRegistry moduleRegistry) {
^
In Android studio i put need depedency for annotation and sync project, build was success and get the same error while running installDebug.
when i deleted expo-av module in node_module i get another error expo-av module not found.
Please suggest me to fix this issues.
And i want to know how to remove expo-av.