Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by siddharth3322 · Sep 08, 2018 at 02:44 PM · androidandroid build

More than one file was found with OS independent path 'kotlin/reflect/reflect.kotlin_builtins'

I was trying to create Android build after exporting from Unity Project. When I tried to export signed APK file, I got many errors and step by step , I have cleared all others.

But at present, get stuck on this one : alt text

This is my Gradle file content :

 // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
 buildscript {
     repositories {
         google()
         jcenter()
     }
 
     dependencies {
         classpath 'com.android.tools.build:gradle:3.1.4'
     }
 }
 
 allprojects {
    repositories {
       flatDir {
         dirs 'libs'
       }
        google()
    }
 }
 
 apply plugin: 'com.android.application'
 
 dependencies {
     compile 'com.android.support:multidex:1.0.2'
     compile fileTree(dir: 'libs', include: ['*.jar'])
     compile(name: 'GoogleAIDL', ext:'aar')
     compile(name: 'GooglePlay', ext:'aar')
     compile(name: 'android.arch.lifecycle.runtime-1.0.0', ext:'aar')
     compile(name: 'com.android.support.animated-vector-drawable-26.1.0', ext:'aar')
     compile(name: 'com.android.support.appcompat-v7-26.1.0', ext:'aar')
     compile(name: 'com.android.support.cardview-v7-26.1.0', ext:'aar')
     compile(name: 'com.android.support.customtabs-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-compat-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-core-ui-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-core-utils-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-fragment-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-media-compat-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-v4-26.1.0', ext:'aar')
     compile(name: 'com.android.support.support-vector-drawable-26.1.0', ext:'aar')
     compile(name: 'com.google.android.gms.play-services-auth-16.0.0', ext:'aar')
     compile(name: 'com.google.android.gms.play-services-auth-api-phone-15.0.1', ext:'aar')
     compile(name: 'com.google.android.gms.play-services-auth-base-15.1.0', ext:'aar')
     compile(name: 'com.google.android.gms.play-services-base-15.0.1', ext:'aar')
     compile(name: 'com.google.android.gms.play-services-basement-15.0.1', ext:'aar')
     compile(name: 'com.google.android.gms.play-services-tasks-15.0.1', ext:'aar')
     compile(name: 'com.google.signin.google-signin-support-1.0.3', ext:'aar')
     compile(name: 'common', ext:'aar')
     compile(name: 'facebook-android-wrapper-7.12.1', ext:'aar')
     compile(name: 'facebook-applinks', ext:'aar')
     compile(name: 'facebook-common', ext:'aar')
     compile(name: 'facebook-core', ext:'aar')
     compile(name: 'facebook-login', ext:'aar')
     compile(name: 'facebook-messenger', ext:'aar')
     compile(name: 'facebook-places', ext:'aar')
     compile(name: 'facebook-share', ext:'aar')
     compile group: 'com.android.tools.lint', name: 'lint-gradle', version: '26.1.0-beta1'
 }
 
 android {
     compileSdkVersion 28
     buildToolsVersion '28.0.2'
 
     defaultConfig {
         targetSdkVersion 28
         applicationId 'com.newdodgels'
         multiDexEnabled true
     }
 
     lintOptions {
         abortOnError false
     }
 
     aaptOptions {
         noCompress '.unity3d', '.ress', '.resource', '.obb','bin/data/sharedassets0.resource'
     }
 
     signingConfigs { release {
         storeFile file('/Volumes/Work/Company/Unity/RunningGames/Dodgels/market/dodgelskeystore.keystore')
         storePassword 'Dodgels2018'
         keyAlias 'dodgels'
         keyPassword 'Dodgels2018'
     } }
 
     buildTypes {
           debug {
              minifyEnabled false
              useProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
               jniDebuggable true
           }
           release {
              minifyEnabled true
              useProguard true
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
               signingConfig signingConfigs.release
           }
     }
 
     packagingOptions {
         exclude 'META-INF/DEPENDENCIES'
         exclude 'META-INF/LICENSE'
         exclude 'META-INF/LICENSE.txt'
         exclude 'META-INF/license.txt'
         exclude 'META-INF/NOTICE'
         exclude 'META-INF/NOTICE.txt'
         exclude 'META-INF/notice.txt'
         exclude 'META-INF/ASL2.0'
 
     }
 
 }


I have tried Stackoverflow posts with similar problems. So I expect some other solution that work for me.

android-studio-error.png (63.6 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by timjamesfraser · Jan 18, 2019 at 03:03 PM

Hi @siddharth3322. Did you find a solution to this? I'm struggling with exactly the same thing on an Android Kotlin build at the moment. Would be great to know if you worked out a fix. Thanks.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image siddharth3322 · Jan 18, 2019 at 03:13 PM 0
Share

No, I can't - I spent enough time with this problem but I don't have enough knowledge in Android so I can't able to sort out this problem. I have changed this approach to build export after that.

avatar image timjamesfraser siddharth3322 · Jan 18, 2019 at 03:27 PM 0
Share

Thanks for getting back to me but I just found a solution to my prob:

https://stackoverflow.com/questions/41052868/what-are-kotlin-builtins-files-and-can-i-omit-them-from-my-uberjars

So I added the following to my Gradle build:

packagingOptions { exclude "/$$anonymous$$ETA-INF/.kotlin_module" exclude "/kotlin/*" }

Hope that helps if you face the problem again in the future. Cheers

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

210 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Attach to Android Build with ADB 1 Answer

Cannot build for Android 2 Answers

After installing the .apk , the App Icon appears twice 1 Answer

failed to re-package resources after importing facebook-unity-sdk-7.6.0 0 Answers

graphic issue with some android devices running 6.0 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges