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

what's the meaning of Free Memory for Android APP?
Change the Arrow Icon in the Drawer Menu?
How to load image from file into the memory in android?
Multiple instances of an app
Error message: Field requires API level 11 (current min is 8): android.os.AsyncTask#THREAD_POOL_EXECUTOR
Android Studio Not Recognizing HTC One
How to implement Touch listener on Multiple button?
When should I close the ServerSocket opened at app startup?
Override UP button in action bar
How can I control external USB light?
Android toolbar hides when editing text
Custom button image not fit inside shapeDrawable
FloatingActionButton shadow not being drawn properly
Android Permission: App crashes needing bluetooth permission
Issues integrating FacebookSDK and SimpleFacebook into Main Eclipse Project and starting Android app
How to maintain scroll position of listview when the adapter update

Categories

HOME
notepad++
django
cobalt
checkstyle
spark-streaming
time-complexity
c99
nvd3.js
rdbms
google-spreadsheet
twig
character-encoding
case
hessian
jelastic
cakephp-3.4
parameters
banner
boto3
sendgrid-api-v3
siddhi
activecollab
libc
eip
flatpak
libusb
event-sourcing
glyphicons
symfony-2.8
foreign-keys
sencha-touch
poedit
dataflow-diagram
react-toolbox
mongoid6
epsilon
displaytag
jquery-callback
draft-js-plugins
shared
corpus
amazon-quicksight
has-and-belongs-to-many
fractions
quantlib
mql
dst
python-pptx
docfx
openproject
protein-database
portforwarding
http-request
android-exoplayer
stylecop
plan-9
getchar
libgphoto2
cnc
hammer.js
reindex
context-switch
static-cast
skin
pybrain
gameplay-kit
ampps
branch-prediction
choice
microstation
qtplugin
myspace
greatest-n-per-group
beamer
model-associations
ng-grid
installshield-2010
lua-telegram-bot
data-protection
atan2
dynatree
batik
iced-coffeescript
jdk1.7
fail2ban
rrule
adehabitathr
cryptographichashfunction
apache-spark-1.3
theos
jbake
addressing-mode
wcm
template-deduction
cuba
jjaql
spring-remoting
square-bracket
embedded-fonts
ie8-compatibility-mode
ice-cube
ebay-lms
windows-98
fb.ui
dopostback
sentestingkit
database-create
google-maps-mobile
node-redis
denied
expression-blend-4
landscape-portrait
automationelement
entitydatasource
pylucene
objective-j
blender-2.49
wcf-instancing
asynchronous-wcf-call
product-management
lemmatization

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App