java.lang.NoSuchFieldError: this$0

Stack Overflow | Tommy Saechao | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NoSuchFieldError

    this$0

    at android.view.ViewRootImpl$RunQueue.postDelayed()
  2. Android Platform
    DatePicker.<init>
    1. android.view.ViewRootImpl$RunQueue.postDelayed(ViewRootImpl.java:6872)
    2. android.view.ViewRootImpl$RunQueue.post(ViewRootImpl.java:6868)
    3. android.view.View.post(View.java:12979)
    4. android.widget.NumberPicker.postSetSelectionCommand(NumberPicker.java:2047)
    5. android.widget.NumberPicker.access$1200(NumberPicker.java:94)
    6. android.widget.NumberPicker$InputTextFilter.filter(NumberPicker.java:2130)
    7. android.widget.TextView.setText(TextView.java:4233)
    8. android.widget.TextView.setText(TextView.java:4199)
    9. android.widget.EditText.setText(EditText.java:84)
    10. android.widget.TextView.setText(TextView.java:4174)
    11. android.widget.NumberPicker.updateInputTextView(NumberPicker.java:1923)
    12. android.widget.NumberPicker.setDisplayedValues(NumberPicker.java:1505)
    13. android.widget.DatePicker$DatePickerSpinnerDelegate.<init>(DatePicker.java:679)
    14. android.widget.DatePicker.createSpinnerUIDelegate(DatePicker.java:155)
    15. android.widget.DatePicker.<init>(DatePicker.java:144)
    16. android.widget.DatePicker.<init>(DatePicker.java:126)
    17. android.widget.DatePicker.<init>(DatePicker.java:122)
    17 frames
  3. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor287.newInstance(Unknown Source)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    3. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    3 frames
  4. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:619)
    2. android.view.BridgeInflater.onCreateView(BridgeInflater.java:107)
    3. android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
    4. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
    5. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:149)
    6. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
    7. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:835)
    8. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
    9. android.view.LayoutInflater.rInflate(LayoutInflater.java:811)
    10. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
    11. android.view.LayoutInflater.inflate(LayoutInflater.java:515)
    12. android.view.LayoutInflater.inflate(LayoutInflater.java:394)
    12 frames
  5. com.android.layoutlib
    Bridge.createSession
    1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:229)
    2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)
    2 frames
  6. com.android.tools.sdk-common
    LayoutLibrary.createSession
    1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
    1 frame
  7. com.android.tools
    RenderTask$2.compute
    1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:520)
    2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:508)
    2 frames
  8. IDEA
    ApplicationImpl.runReadAction
    1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:967)
    1 frame
  9. com.android.tools
    RenderTask.render
    1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:508)
    2. com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:75)
    3. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:620)
    4. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:617)
    5. com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:371)
    6. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:617)
    7. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:639)
    7 frames
  10. JetBrains android
    AndroidLayoutPreviewToolWindowManager$7$1.run
    1. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:654)
    2. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:82)
    3. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:596)
    3 frames
  11. IDEA
    CoreProgressManager.runProcess
    1. com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    2. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    3. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    4. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    5. com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    5 frames
  12. JetBrains android
    AndroidLayoutPreviewToolWindowManager$7.run
    1. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:591)
    1 frame
  13. Openapi
    QueueProcessor.runSafely
    1. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
    2. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
    3. com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:271)
    4. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:286)
    5. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:244)
    6. com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)
    7. com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
    7 frames
  14. IDEA
    Alarm$Request$1.run
    1. com.intellij.util.Alarm$Request$1.run(Alarm.java:352)
    1 frame
  15. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames