google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.8k stars 1.89k forks source link

add aar to a new android peoject ,some errors #1309

Closed jaccen closed 5 years ago

jaccen commented 5 years ago

new a android poject, and new module->import aar---->filament-20190313-android there are some problems~~ Describe the bug A clear and concise description of what the bug is.

Task :app:checkArm8DebugDuplicateClasses FAILED

FAILURE: Build failed with an exception.

To Reproduce Steps to reproduce the behavior:

  1. ...

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

romainguy commented 5 years ago

According to the error you've added two Filament AARs to your project:

filament-20190313-android.aar filament-release-android.aar

Remove one of them to fix the problem.

lucagrana commented 4 years ago

@romainguy from where I have to remove one of them? Couse I've the same problem but I don't know how to solve it

Duplicate class com.google.android.filament.AndroidPlatform found in modules jetified-filament-android-1.4.5-runtime.jar (com.google.android.filament:filament-android:1.4.5) and jetified-filament-android-1.7.0-runtime.jar (com.google.ar.sceneform:filament-android:1.7.0)