chaimPaneth / react-native-jw-media-player

React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
MIT License
190 stars 91 forks source link

error: cannot find symbol ... findViewById(R.id.controlbar_seekbar) #356

Closed chriszs closed 1 month ago

chriszs commented 2 months ago

Got the following error when building for Android:

> Task :react-native-jw-media-player:compileDebugJavaWithJavac FAILED
/Users/admin/Desktop/work/statnews/mobile/node_modules/react-native-jw-media-player/android/src/main/java/com/appgoalz/rnjwplayer/RNJWPlayerView.java:762: error: cannot find symbol
                CueMarkerSeekbar seekBar = findViewById(R.id.controlbar_seekbar);
                                                         ^
  symbol:   variable id
  location: class R

JWPlayer's own fork of this seems to add com.longtailvideo.jwplayer. in front of R.id.controlbar_seekbar, which appears to avoid the build error because when I apply that by hand to this library, it builds successfully.