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

How to display external storage image in imageview
ImageView animation with AdMob
How to speed up AVD boot (more detailed)?
android - intent action namespace
Sqlite manager couldn't open my android database
Error: the item you were attemping to purchase could not be found
Certificate chain not found, how to fix and publish to Google Play Store?
Where do I find the android debug key build by Phonegap
Service doesnot stop after activity destroy
What does sf_frame_dur indicate in Android Logcat logs?
How to add a Bounce animation effect for logo in Android splash screen?
Android : How can i Customize Spinner items?
How to use media queries in phonegap
What is google play in app product type difference in Managed, Unmanaged and Subscriptions?
Android:SQLite - Querying an Array in SelectionArgs as well as other string values
making a call and press a number while in a call programmatically?

Categories

HOME
github-for-windows
case
3d
jelastic
graphics
simulink
scripting
interpolation
azure-container-service
okhttp
jquery-ui-sortable
php-5.6
selenium-ide
eip
flash-player
selectize.js
android-intent
google-content-api
sigma.js
kendo-mobile
rubymotion
imagemap
tosca
comparator
siri
interbase
has-and-belongs-to-many
oculus
tpm
realm-mobile-platform
cognos-bi
sql-server-2000
apic
openalpr
cd
node-mssql
apns-php
railstutorial.org
p4merge
hackintosh
android-softkeyboard
ssrs-2014
http-request
mongotemplate
modelsim
subnet
cup
check-mk
bbpress
rackspace-cloud
flyout
restore
uicolor
scaffolding
omniauth-facebook
dbamp
hadoop-partitioning
kendo-upload
opl
finalbuilder
nutiteq
shopizer
apache-spark-1.3
execve
sql-scripts
build-script
jjaql
spring-3
kendo-dataviz
isqlquery
jquery-1.9
twisted.web
preload
onmousemove
dajaxice
failing-tests
isa-swizzling
relative
workflow-services
u2netdk
winmain
cdonts
nhprof
mathematical-notation
linfu-dynamicproxy
dsoframer

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