Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

When export to gradle , Assertion failed: Trying to add file ...

Discussion in 'Android' started by nemo76, Nov 20, 2018.

  1. nemo76

    nemo76

    Joined:
    Jul 26, 2017
    Posts:
    8
    Hello.

    when I exprot to gradle project.

    I got some kind of following exceptions.

    Code (CSharp):
    1. Assertion failed: Trying to add file D:/rockberry/tls_android4/gradle_output/TheLastSlain/libs/unity-classes.jar to the list of ouptut files in the build report, but a file at that path has already been added.
    2. Assertion failed: Trying to add file D:/rockberry/tls_android4/gradle_output/TheLastSlain/libs/AndroidNative.aar to the list of ouptut files in the build report, but a file at that path has already been added.
    3. Assertion failed: Trying to add file D:/rockberry/tls_android4/gradle_output/TheLastSlain/libs/com.android.support.animated-vector-drawable-25.3.1.aar to the list of ouptut files in the build report, but a file at that path has already been added.


    What 's wrong? Any advice please.
     
  2. rahat090255

    rahat090255

    Joined:
    Aug 15, 2018
    Posts:
    14
    i am facing same kind of problem with all the libraries
     
  3. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,072
    Can someone please submit a bug report, attach the project and post the case # here? Thanks!
     
  4. Tortuap

    Tortuap

    Joined:
    Dec 4, 2013
    Posts:
    46
    I'm facing the same issue. But I can't attach my project to fill this bug report.
    Should I fill a bug report without the project ? Is it ok ?
     
  5. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,072
    A bug report without a project is unlikely to be processed, sorry.
    Try adding a smallest project that reproduces the issue.
     
  6. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    313
    Try exporting project twice and the error occurs on Unity 2018.2.4f1:
     
  7. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,072
    That's not the same issue as in the initial post. I think it was fixed in a later Unity version. If it still persists in latest 2018.3, please submit a bug report.
     
    zwcloud likes this.
  8. CSDSAdmin

    CSDSAdmin

    Joined:
    Apr 26, 2018
    Posts:
    6
    close down unity then restart ( you should get a different error about SDK issues then check you have all the Andriod SDK version you need check that in andriod studio ( i only had 9.0 once i installed everything down to 7.0 it worked)