Development problems with android 7.x

0

I recently developed an application in Android Studio, this application has no failure running on Android 6.0 or earlier, but when installed on Android 7.0 or higher, the application launches a force shutdown.

Any idea what it can be? Has anyone gone through the same thing?

In the LogCat it shows me the following:

10-16 14:16:22.265 16491-16491/? I/art: Late-enabling -Xcheck:jni
10-16 14:16:22.317 16491-16498/? E/art: Failed sending reply to debugger: Broken pipe
10-16 14:16:22.317 16491-16498/? I/art: Debugger is no longer active
10-16 14:16:22.317 16491-16498/? I/art: Starting a blocking GC Instrumentation
10-16 14:16:22.330 16491-16491/? W/System: ClassLoader referenced unknown path: /mnt/expand/e68bdd3c-69bd-4bbd-9730-ac5869f3a246/app/com.richard.tusletrasolvidadas-1/lib/arm
10-16 14:16:22.348 16491-16491/? D/AndroidRuntime: Shutting down VM
10-16 14:16:22.350 16491-16491/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: com.richard.tusletrasolvidadas, PID: 16491
                                                   java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/mnt/expand/e68bdd3c-69bd-4bbd-9730-ac5869f3a246/app/com.richard.tusletrasolvidadas-1/base.apk"],nativeLibraryDirectories=[/mnt/expand/e68bdd3c-69bd-4bbd-9730-ac5869f3a246/app/com.richard.tusletrasolvidadas-1/lib/arm, /system/lib, /vendor/lib]]
                                                       at android.app.ActivityThread.installProvider(ActivityThread.java:5855)
                                                       at android.app.ActivityThread.installContentProviders(ActivityThread.java:5444)
                                                       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5383)
                                                       at android.app.ActivityThread.-wrap2(ActivityThread.java)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:154)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6123)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
                                                    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/mnt/expand/e68bdd3c-69bd-4bbd-9730-ac5869f3a246/app/com.richard.tusletrasolvidadas-1/base.apk"],nativeLibraryDirectories=[/mnt/expand/e68bdd3c-69bd-4bbd-9730-ac5869f3a246/app/com.richard.tusletrasolvidadas-1/lib/arm, /system/lib, /vendor/lib]]
                                                       at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                       at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                                                       at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                       at android.app.ActivityThread.installProvider(ActivityThread.java:5840)
                                                       at android.app.ActivityThread.installContentProviders(ActivityThread.java:5444) 
                                                       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5383) 
                                                       at android.app.ActivityThread.-wrap2(ActivityThread.java) 
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541) 
                                                       at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                       at android.os.Looper.loop(Looper.java:154) 
                                                       at android.app.ActivityThread.main(ActivityThread.java:6123) 
                                                       at java.lang.reflect.Method.invoke(Native Method) 
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757) 

Greetings in advance.

    
asked by Richard Salinas 16.10.2017 в 19:53
source

1 answer

0

By mistake DexPathList gives to understand that it can be the limite of the methods of the MultiDex.

Try the following. Modify your build.gradle file and add the following:

android {

   defaultConfig {
      multiDexEnabled true
   }
}

In your manifest:

<application

  android:name=".ClaseAplicacion">

</application>

Then create a class with the name ClaseAplicacion with the following:

public class ClaseAplicacionextends Application {

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

}
    
answered by 16.10.2017 в 22:45