google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 603 forks source link

Error on Sceneform assets import #92

Closed mhdtouban closed 6 years ago

mhdtouban commented 6 years ago

While trying to add 3d model and once I import scene form assets I get the following error

Cannot add task ':app:compileAsset-src_47main_47assets_47Heart' as a task with that name already exists. error creating sfa

AS:3.2canary17

mhdtouban commented 6 years ago
tpsiaki commented 6 years ago

@mhdtouban - It looks like you may be trying to import something that's already been imported once. Will you send a snippet of your app build.gradle file containing all of the entries that start with sceneform.asset?

mhdtouban commented 6 years ago

That's right, but would be more grateful to replace it ? instead of such error.

tpsiaki commented 6 years ago

@mhdtouban - could you provide more context for what you are changing that requires you to reimport rather than simply rebuild using the existing gradle rule (generated by the initial import)?

If you change any of the inputs, such as the 3d model file, textures, etc... the .sfb will be automatically rebuilt when you build your Android Studio project because it is part of your gradle build once you've imported once, so you should not need to import more than one time when you are just modifying your assets.

mhdtouban commented 6 years ago

The error happens when I try to convert another file and not the same one.

On Thu, Jun 14, 2018, 5:29 PM tpsiaki notifications@github.com wrote:

@mhdtouban https://github.com/mhdtouban - could you provide more context for what you are changing that requires you to reimport rather than simply rebuild using the existing gradle rule (generated by the initial import)?

If you change any of the inputs, such as the 3d model file, textures, etc... the .sfb will be automatically rebuilt when you build your Android Studio project because it is part of your gradle build once you've imported once, so you should not need to import more than one time when you are just modifying your assets.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google-ar/sceneform-android-sdk/issues/92#issuecomment-397316157, or mute the thread https://github.com/notifications/unsubscribe-auth/ACYvD-4h0ujvRmJQ4rwhqq70yHYPh3DFks5t8nMygaJpZM4Ui10Z .

tpsiaki commented 6 years ago

but it looks like there's a duplicate of at least one of the rules, correct?

The error you mentioned above indicates that the src/main/assets/Heart was likely imported twice.

Abdullahbtechit commented 6 years ago

please keep the models inside the app. ar issue

CarlosVillagran commented 4 years ago

is it a solution?