ActivityThread.handleLaunchActivity() has thrown a RuntimeException

java.lang.RuntimeException
Javadoc
@code RuntimeException} is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.

{@code RuntimeException} and its subclasses are unchecked exceptions. Unchecked exceptions do not need to be declared in a method or constructor's {@code throws} clause if they can be thrown by the execution of the method or constructor and propagate outside the method or constructor boundary. @author Frank Yellin @jls 11.2 Compile-Time Checking of Exceptions @since JDK1.0

at android.app.ActivityThread.performLaunchActivity
(source)
at android.app.ActivityThread.handleLaunchActivity
(source)

Typical Exception Messages

  1. Unable to start activity ComponentInfo{org.wycliffeassociates.translationrecorder/org.wycliffeassociates.translationrecorder.Playback.PlaybackActivity}: java.lang.IllegalStateException: Unable to retrieve AudioTrack pointer for getPosition()
  2. <No message>
  3. Unable to start activity ComponentInfo{com.translationstudio.androidapp/com.door43.translationstudio.newui.translate.TargetTranslationActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
  4. Unable to start activity ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}: java.lang.NullPointerException: Attempt to get length of null array
  5. Unable to start activity ComponentInfo{rom.stalker/browser.afh.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.NetworkInfo.isConnected()' on a null object reference
  6. Unable to start activity ComponentInfo{org.wycliffeassociates.translationrecorder/org.wycliffeassociates.translationrecorder.Playback.PlaybackActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewTreeObserver android.view.View.getViewTreeObserver()' on a null object reference
  7. Unable to start activity ComponentInfo{us.shandian.blacklight/info.papdt.blacklight.ui.statuses.SingleActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long android.os.Bundle.getLong(java.lang.String)' on a null object reference
  8. Unable to start activity ComponentInfo{com.ias.dispatchM/com.soundcloud.android.crop.CropImageActivity}: java.lang.NullPointerException: Attempt to write to field 'android.content.Context com.soundcloud.android.crop.CropImageView.context' on a null object reference
  9. Unable to start activity ComponentInfo{com.example.androidthings.assistant/com.example.androidthings.assistant.AssistantActivity}: java.lang.UnsupportedOperationException: Cannot create AudioRecord
  10. Unable to start activity ComponentInfo{com.example.test.assignment3/com.example.test.assignment3.MainActivity}: android.database.sqlite.SQLiteException: near "animalName": syntax error (code 1): , while compiling: CREATE TABLE animals(_id INTEGER PRIMARY KEY AUTOINCREMENT animalName TEXT );

Origin

Unhandled exception during activity initialization

java.lang.RuntimeException
android.app.ActivityThread.performLaunchActivity
4439Web pages
1Solution

Similar

Specific cases

Solution

Nwabunnia, 11 months ago

Create an empty public constructor in your code.

External results for this pattern (4254)

  1. coolegosvia GitHub3 weeks ago
    Unable to start activity ComponentInfo{com.hotbitmapgg.moequest/com.hotbitmapgg.moequest.ui.activity.GankMeiziPageActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'float android.view.View.getAlpha()' on a null object reference
    Show stack trace
  2. nshdesaivia GitHub3 weeks ago
    Unable to start activity ComponentInfo{com.wordwrite.nsh.wordwrite/com.wordwrite.nsh.wordwrite.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void ai.api.ui.AIButton.initialize(ai.api.android.AIConfiguration)' on a null object reference
    Show stack trace
  3. 921668753via GitHub3 weeks ago
    Unable to start activity ComponentInfo{com.tamic.simplebrowse/com.tamic.simplebrowse.MainActivity}: android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class com.tamic.jswebview.view.ProgressBarWebView
    Show stack trace
  4. ukasiuvia GitHub4 weeks ago
    Unable to start activity ComponentInfo{com._redacted_.app/com._redacted_.app.MainActivity}: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.swmansion.rnscreens.Screen$ScreenFragment: calling Fragment constructor caused an exception
    Show stack trace
  5. tomlearvia GitHub4 weeks ago
    Unable to start activity ComponentInfo{localvicinity.localvicinity.com.localvicinity/localvicinity.localvicinity.com.localvicinity.LocationListActivity}: java.lang.IllegalArgumentException: Can't have a viewTypeCount < 1
    Show stack trace
  6. iad24via GitHub4 weeks ago
    Unable to start activity ComponentInfo{com.xxx.yyy/com.myapp.modules.login.views.LoginActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class android.widget.EditText
    Show stack trace
  7. afarbervia GitHub4 weeks ago
    Unable to start activity ComponentInfo{de.slova/de.slova.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
    Show stack trace
  8. Psialevia GitHub4 weeks ago
    Unable to start activity ComponentInfo{com.example.psiale.cuntochupar/com.example.psiale.cuntochupar.Drinks}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
    Show stack trace
  9. mikepenzvia GitHub4 weeks ago
    Unable to start activity ComponentInfo{de.slova/de.slova.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
    Show stack trace
  10. gilshallemvia GitHub4 weeks ago
    Unable to start activity ComponentInfo{com.gilapps.smsshare2/com.theartofdev.edmodo.cropper.CropImageActivity}: java.lang.NullPointerException
    Show stack trace