java.io.IOException: No original dex files found for dex location

前端 未结 7 890
后悔当初
后悔当初 2020-12-11 00:42

I\'m trying to build an Android application using the latest SDK from project files that haven\'t been updated since 2015. With a little work, I\'ve managed to get it build

相关标签:
7条回答
  • 2020-12-11 01:15

    I saw this error when I was forgetting to add

        <uses-library
            android:name="org.apache.http.legacy"
            android:required="false" />
    

    https://developer.android.com/about/versions/marshmallow/android-6.0-changes#behavior-apache-http-client

    0 讨论(0)
  • 2020-12-11 01:18

    I had a similar problem, solution: go to build.gradle(Module: app) in debug block and disable minifyEnabled:

    debug {
                minifyEnabled false
    
            }
    
    0 讨论(0)
  • 2020-12-11 01:22

    I also faced same kind of issue after installing my apk. After disabling PREOPT from android.mk and building the application then it started working.

    Please see the below link for reference https://groups.google.com/forum/#!topic/android-building/NWpPusXEfN0

    0 讨论(0)
  • 2020-12-11 01:24

    I had the same error but it was found out that I forgot to add permission in AndroidManifest.xml. My app uses internet with a webview, so I need the permission.

    <uses-permission android:name="android.permission.INTERNET" />
    

    Also seems like there was a mistake in activity name in the manifest file.

    <activity android:name=".(Wrong name)">
    

    When I corrected these, the error disappeared.

    0 讨论(0)
  • 2020-12-11 01:25

    I faced this error with Room. To solve it I just clean project then run it.

    0 讨论(0)
  • 2020-12-11 01:30

    i had this problem and add this to the AndroidManifest:

    <uses-library android:name="org.apache.http.legacy"
                  android:required="false" />
    
    0 讨论(0)
提交回复
热议问题