2017-09-23 3 views
0

Ich mache ein Projekt und testen Sie es.Nicht instanziieren Aktivität ComponentInfo in android

Ich teste in meinem Gerät Galaxy S7 (Mashmellow), es funktioniert gut, aber ein anderes Gerät SHV-205 (Kitkat), tritt Fehler wie folgt auf.

09-23 15:24:45.981 10438-10438/com.thewell.thewell_dev.companylink E/AndroidRuntime: FATAL EXCEPTION: main 
                        Process: com.thewell.thewell_dev.companylink, PID: 10438 
                        java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.thewell.thewell_dev.companylink/com.thewell.thewell_dev.fourslink.Activity.SplashActivity}: java.lang.ClassNotFoundException: Didn't find class "com.thewell.thewell_dev.fourslink.Activity.SplashActivity" on path: DexPathList[[zip file "/data/app/com.thewell.thewell_dev.companylink-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.thewell.thewell_dev.companylink-1, /vendor/lib, /system/lib]] 
                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306) 
                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471) 
                         at android.app.ActivityThread.access$900(ActivityThread.java:175) 
                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) 
                         at android.os.Handler.dispatchMessage(Handler.java:102) 

Ich benutze Android Studio. Ich teste es und lade es in Google Play Store hoch, aber es funktioniert gut.

Ich weiß nicht, warum dieses Problem auftritt, diesen Fehler.

bitte helfen Sie mir

Antwort

0

ich diesen Fehler konfrontiert bereits, und fand die Lösung selbst,

Wenn Sie Sie Begrüßungsbildschirm Aktivität in Ihrer Aktivität Paket platziert sind, fügen Sie es zu Umverpackung bewegen (Haupt-Paket)

wie unten gezeigt Bild ..!

wrong Correct

Verwandte Themen