Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError

前端 未结 6 1716
自闭症患者
自闭症患者 2020-12-24 10:30

I see an information log in my console that looks like an error. It is printed from \"art\", which is generally associated to memory but I need help understanding what it me

相关标签:
6条回答
  • 2020-12-24 10:44

    I had the same error and crash. I tried Invalidate Cache and restart and also tried clearing my app data on the emulator. The key to fixing it was wiping the entire emulator's os and then the error and crash went away. It was never an issue on a real device.

    0 讨论(0)
  • 2020-12-24 10:59

    Clean Project and Run app again worked for me.

    0 讨论(0)
  • 2020-12-24 11:00

    I would try a clean and reset-cache.

    File -> Invalidate Cache and restart

    0 讨论(0)
  • 2020-12-24 11:02

    java.lang.NoClassDefFoundError indicates, that something was found at compiletime but not at runtime. Maybe you just have to add it to the Classpath.

    Right click on your project and select -> Compile Module, and then re-start the project and it should work again.

    0 讨论(0)
  • 2020-12-24 11:02

    In my case, I was having errors in design view. I overlooked those errors and ran the program, I got above exceptions.

    However, When I went to design view. I saw a red error symbol at right top. I clicked at the symbol and got error details.

    Error details could be different for you, but for me column index of one button was out of the range of grid column number.

    I re-ran after fixing those errors. Worked for me.

    0 讨论(0)
  • 2020-12-24 11:07

    Cross-check this line

    View originalContentView = super.onCreateView(inflater, container, savedInstanceState);
    
    0 讨论(0)
提交回复
热议问题