Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Building Project with multiple plugins - Build Local ok - Build Cloud ko

Discussion in 'Unity Cloud Build' started by Deleted User, Jan 11, 2019.

  1. Deleted User

    Deleted User

    Guest

    Hi everyone,

    i'm currently working on a project that use multiple plugins, when i try to build and run it locally, everything goes well.
    If i try to build the project using the Unity Cloud Service, the build finished exporting player successfully, but when i run it on my Android device, it crash.

    The logcat terminal service report several errors:

    Rejecting re-init on previously-failed class java.lang.Class<com.voxelbusters.nativeplugins.extensions.FileProviderExtended>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/FileProvider;

    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path: DexPathList....(continue...)

    I realized that building it locally, the final .apk contains all the plugins dependencies.
    Via Cloud Build, the final .apk don't contains these dependencies.

    I set to use the Gradle build system in both building systems (local and cloud)

    These are the details of the project.

    Platform: Android
    Unity Version: 2018.1.9
    Macro Plugins:
    1) Cross Platform Native Plugins (Voxel Buster)
    2) Google Play Games and Play Services Resolver
    3) Google Mobile Ads (Admob)
    4) Firebase Analytics

    I attached a Full log of my last Android Cloud Build Project.
     

    Attached Files: