React-native-video: Do not compile on Android when add to an empty project created by react-native init

Created on 7 Feb 2019  路  1Comment  路  Source: react-native-video/react-native-video

Current behavior

Describe what happens when you encounter this issue.
Do not compile

> Task :app:transformClassesWithDexBuilderForDebug FAILED
com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/gordon/.gradle/caches/transforms-1/files-1.1/exoplayer-ui-2.9.3.aar/8fb4d898da604795bb8dea26604b7e84/jars/classes.jar

Reproduction steps

A 1, 2, 3, etc. list of what's needed to see the issue happen.

  1. react-native init myProject
  2. Open an android emulator
  3. cd myProject At this point react-native run-android works properly
  4. yarn add react-native-video
  5. react-native link react-native-video Now the project won't even compile with react-native run-android

Expected behavior

Describe what you wanted to happen
Do not suck

Platform

Which player are you experiencing the problem on:

  • Android

React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 33.14 MB / 16.00 GB
Shell: 4.4.23 - /usr/local/bin/bash
Binaries:
Node: 11.5.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.7.0 - ~/.npm-packages/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 27, 28
Build Tools: 27.0.3, 28.0.3
System Images: android-24 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5264788
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.4 => 0.58.4
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1

Most helpful comment

OK. I missed something in the README.md https://github.com/react-native-community/react-native-video#exoplayer-290-java-18-requirement

However I really home we move this up to the top of the document

>All comments

OK. I missed something in the README.md https://github.com/react-native-community/react-native-video#exoplayer-290-java-18-requirement

However I really home we move this up to the top of the document

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RZulfikri picture RZulfikri  路  3Comments

gogoku picture gogoku  路  3Comments

tirrorex picture tirrorex  路  3Comments

Chubacca picture Chubacca  路  3Comments

rogerkerse picture rogerkerse  路  3Comments