android


Unable to instantiate activity ComponentInfo{com.example.SplashScreen in Android studio (Lollipop)


I have created Android project with splash screen in Android Studio. The application is fine working in Marshmallow and Kitkat version of Android. But it has problem with Lollipop version. Here I'm attaching exception stack trace. Please help me with this.
FATAL EXCEPTION: main Process: com.example.deeps.crystallotus, PID: 11813java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.deeps.crystallotus/com.example.deeps.crystallotus.SplashScreen}: java.lang.ClassNotFoundException: Didn't find class "com.example.deeps.crystallotus.SplashScreen" on path: DexPathList[[zip file "/data/app/com.example.deeps.crystallotus-2/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2439)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2608)
at android.app.ActivityThread.access$800(ActivityThread.java:178)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5637)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.deeps.crystallotus.SplashScreen" on path: DexPathList[[zip file "/data/app/com.example.deeps.crystallotus-2/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1071)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2608)
at android.app.ActivityThread.access$800(ActivityThread.java:178)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5637)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Suppressed: java.lang.ClassNotFoundException: com.example.deeps.crystallotus.SplashScreen
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
05-05 23:46:55.507 11813-11828/com.example.deeps.crystallotus E/art: Failed sending reply to debugger: Broken pipe
05-05 23:46:55.508 11813-11828/com.example.deeps.crystallotus I/art: Debugger is no longer active
05-05 23:47:06.004 11813-11828/com.example.deeps.crystallotus I/art: Debugger is no longer active
This is my Manifest File:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.deeps.crystallotus">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#drawable/application_logo"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main"
android:theme="#style/AppTheme.NoActionBar" />
</application>
</manifest>

Related Links

Could youhelp me out in android xml? [duplicate]
Different code in different build variant
Connecting with Googlecast with custom UI
Android Change the System Brightness Not working
Why can't I open video in opencv/cpp?
Drawing line programmatically on a Layout
ORMLite - How to return all rows where a column contains some String?
can't compile FirebaseUI
android ndk oand openCV
android multiple webview
Android Studio NDK gradle: Cannot find share library
Google Maps Geocoding API Markers not showing on Map using Asynctask and Firebase
OnMapRedady info window
Admob real ads not showing after publishing it
Android: SwipeRefreshLayout not working on match_parent
Android Studio jumping over breakpoints

Categories

HOME
shell
twitter-bootstrap-3
dns
github-for-windows
components
oracle-apex-5
scripting
missing-data
fosrestbundle
datastage
libc
automatic-ref-counting
shared-libraries
alpacajs
scsi
symfony-2.8
chargify
smartclient
xmonad
pyramid
production
charles
strongname
perlbrew
dapper-extensions
entity-relationship-model
browser-sync
autodesk-designautomation
dotspatial
event-flow
instantiation
apic
cd
css-position
comparison-operators
vmware-fusion
pom.xml
mesosphere
xbmc
serde
netbeans6.8
twilio-click-to-call
insight
arq
custom-font
boxing
compiler-design
edit
cmp
choice
atlas
winusb
mta
nikeplus-api
vorpal.js
avspeechsynthesizer
dbamp
boost-serialization
fink
state-restoration
dynamics-nav-2016
wiredep
rubaxa-sortable
.bash-profile
avahi
botan
cwrsync
mraid
entity-framework-4.3
variadic-templates
at-job
cocos3d
universal-image-loader
trdion2011
angular-carousel
dot42
scriptaculous
neos-server
workitem
composite-component
argouml
idn
panda3d
jquery-blockui
iboutlet
fusefabric
catransform3d
umra
strsep
qglwidget
facebook-iframe
application-verifier
sifr
wcf-instancing
entitykey

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App