android.os.StrictMode$StrictModeDiskReadViolation: policy=23 violation=2

Stack Overflow | bumbobway | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Android WebView causes StrictMode violation

    Stack Overflow | 6 years ago | bumbobway
    android.os.StrictMode$StrictModeDiskReadViolation: policy=23 violation=2

    Root Cause Analysis

    1. android.os.StrictMode$StrictModeDiskReadViolation

      policy=23 violation=2

      at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk()
    2. Android Platform
      WebView.<init>
      1. android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:745)
      2. android.database.sqlite.SQLiteStatement.simpleQueryForLong(SQLiteStatement.java:106)
      3. android.database.sqlite.SQLiteDatabase.getVersion(SQLiteDatabase.java:928)
      4. android.webkit.WebViewDatabase.getInstance(WebViewDatabase.java:196)
      5. android.webkit.WebView.<init>(WebView.java:1002)
      6. android.webkit.WebView.<init>(WebView.java:979)
      7. android.webkit.WebView.<init>(WebView.java:969)
      7 frames
    3. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.constructNative(Native Method)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:415)
      2 frames
    4. Android Platform
      LayoutInflater.createView
      1. android.view.LayoutInflater.createView(LayoutInflater.java:505)
      1 frame
    5. Android
      PhoneLayoutInflater.onCreateView
      1. com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
      2. android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
      3. android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
      4. android.view.LayoutInflater.inflate(LayoutInflater.java:408)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:320)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:276)
      6 frames
    7. Android
      PhoneWindow.setContentView
      1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:214)
      1 frame
    8. Android Platform
      Activity.setContentView
      1. android.app.Activity.setContentView(Activity.java:1660)
      1 frame
    9. com.myapplication
      StartActivity.onCreate
      1. com.myapplication.StartActivity.onCreate(StartActivity.java:886)
      1 frame