java.lang.RuntimeException: Unable to start activity ComponentInfo{droid.dev.shg.shg/droid.dev.shg.shg.MainActivity}: android.database.sqlite.SQLiteException: near "foreign": syntax error (code 1): , while compiling: create table if not exists members(foreign key (id) REFERENCES login(id),mem_name text,mem_dob date,mem_address text,mem_phno text)

  1. 0

    App crashing when trying to insert values into sqlite database table

    Stack Overflow | 4 months ago | Android.Doubts
    java.lang.RuntimeException: Unable to start activity ComponentInfo{droid.dev.shg.shg/droid.dev.shg.shg.MainActivity}: android.database.sqlite.SQLiteException: near "foreign": syntax error (code 1): , while compiling: create table if not exists members(foreign key (id) REFERENCES login(id),mem_name text,mem_dob date,mem_address text,mem_phno text)
  2. 0

    On screen rotation and following Facebook request app crashes

    Stack Overflow | 2 years ago | Marcel_marcel1991
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.marcel.firsttest/com.example.marcel.firsttest.MyActivity}: java.lang.IllegalArgumentException: No view found for id 0x7f080060 (com.example.marcel.firsttest:id/fragment_container) for fragment MainMenuFragment{42527398 #0 id=0x7f080060}
  3. 0

    camera intend send data=null value and app will crash

    Stack Overflow | 1 year ago | jr.abhi
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3, result=-1, data=null} to activity {com.example.surun.suruninfocore/com.example.surun.suruninfocore.UserLogedIn}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3680) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3036)  at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3081)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Camera2 API - lack of privileges on resume

    Stack Overflow | 1 year ago | sliwkacz
    java.lang.RuntimeException: Unable to pause activity {com.snapsportz.nexus5camera.app/com.snapsportz.handheldcamera.app.CameraActivity}: java.lang.SecurityException: Lacking privileges to access camera service
  6. 0

    GitHub comment 5#164261699

    GitHub | 12 months ago | michalbednarski
    java.lang.RuntimeException: Unable to start activity ComponentInfo{pl.edu.zut.mad.appwizut2/pl.edu.zut.mad.appwizut2.activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

  1. Aria Pahlavan 206 times, last 2 weeks ago
  2. iridic 13 times, last 3 weeks ago
  3. Alexandru Popa 19 times, last 1 month ago
  4. filpgame 4 times, last 2 months ago
  5. 0x60 4 times, last 2 months ago
15 more registered users
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{droid.dev.shg.shg/droid.dev.shg.shg.MainActivity}: android.database.sqlite.SQLiteException: near "foreign": syntax error (code 1): , while compiling: create table if not exists members(foreign key (id) REFERENCES login(id),mem_name text,mem_dob date,mem_address text,mem_phno text)

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleRelaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2584)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2666)
    3. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4336)
    3 frames