Open mmatlock-tminus opened 2 years ago
Go back to the root of the project and do npx jetify
Clean your android folder, then build try building again
Unfortunately as mentioned above the project already uses jetifier in its toolchain. Additionally, we use Yarn and not NPM.
We have cleaned build folder a number of times, with no change.
i am getting same issue on build
.../Projects/mobile-dev/node_modules/react-native-twilio-video-webrtc/android/src/main/java/com/twiliorn/library/TwilioRemotePreviewManager.java:45: error: cannot find symbol public void setTrackId(TwilioRemotePreview view, @Nullable String trackSid) { ^ symbol: class Nullable location: class TwilioRemotePreviewManager
+1
Facing same issue while upgrading RN version from .0.64.2 to 0.68.0
+1
+1
After trying many things to solve the error I found one that worked for me, it is not ideal but if it can help someone :
Directly in the modules, in react-native-twilio-video-webrtc/android/src
replace all imports android.support.annotation.
by androidx.annotation.
It makes it compatible with androidx (Usually the job of jetifier but not this time)
I have also added implementation 'com.android.support:support-annotations:+'
in my dependencies app build grade but I'm not sure if it helps (I won't remove it because it works and I don't want to break everything)
EDIT : I've just seen that PR #433 does exactly this
using @marqroldan trick by calling npx jetify
in the root folder did the trick for me
Steps to reproduce
./gradlew bundleRelease
Expected behaviour
Application builds on android.
Actual behaviour
Android build errors out on ./gradlew bundleRelease. 18 errors during compile, cannot find symbol
@NonNull
,@Nullable
,@StringDef
, due to package android.support.annotation supposedly not existing. We are using Jetifier, and I have tried the solutions recommended in #221 but have had no success.Build errors below:
Environment
react-native-twilio-video-webrtc