showing results for - "react native exo player build errior resize mode stringdef contextcompat"
Zain
20 May 2019
1In these 2 files...
2
3.../node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/VideoEventEmitter.java:3: error: package android.support.annotation does not exist
4import android.support.annotation.StringDef;
5
6.../node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ResizeMode.java:3: error: package android.support.annotation does not exist
7import android.support.annotation.IntDef;
8
9replace android.support with androidx
10
11for this one...
12
13.../node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java:5: error: package android.support.v4.content does not exist
14import android.support.v4.content.ContextCompat;
15
16replace android.support.v4 with androidx.core