ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.3k stars 150 forks source link

Urgent Help with Expo Integration. #142

Closed ktjh123 closed 6 months ago

ktjh123 commented 2 years ago

After following the guide, i got this when i run expo run:android

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not find com.google.android.exoplayer:exoplayer:2.7.1. Required by: project :app

Appreciate any help

siabard commented 2 years ago

Update your dependencies in android/app/build.gradle

I changed version of exoplayer from 2.7.1 to 2.17.1 then it compiled. (But I cannot get camera working)

implementation group: 'com.google.android.exoplayer', name: 'exoplayer', version: '2.17.1'
equationalapplications commented 1 year ago

exoplayer 2.7.1 was in jcenter but is not in maven, so it can no longer be found at build time, it seems. I am trying exoplayer 2.13.3 because it is the lowest version available on maven.

skizzo commented 1 year ago

Hi, did you manage to solve this? Trying to get Viro running on React Native 0.71.7.

ViktorVojtek commented 1 year ago

@skizzo Have you managed somehow?

skizzo commented 1 year ago

@ViktorVojtek I don't use Expo, but I managed to get Viro running on a regular RN 0.71.7 (iOS & Android) project.

Setting the exoplayer version to 2.17.1 like @siabard suggested was necessary to get it running on Android nonetheless:

Update your dependencies in android/app/build.gradle

I changed version of exoplayer from 2.7.1 to 2.17.1 then it compiled. (But I cannot get camera working)

implementation group: 'com.google.android.exoplayer', name: 'exoplayer', version: '2.17.1'
ViktorVojtek commented 1 year ago

@skizzo Thanks a lot! :)