java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]


Samebug tips1

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


1 year ago

Solutions on the web10

Solution icon of stackoverflow
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of github
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
via Stack Overflow by CookieMnstr
, 8 months ago
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
via Stack Overflow by Nirel
, 6 months ago
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
via Stack Overflow by Wevo Group3
, 2 weeks ago
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
via Stack Overflow by hamster
, 6 months ago
java.lang.NoSuchMethodException: <init> [class android.view.View]

Solution icon of stackoverflow
java.lang.InstantiationException: Can't instantiate abstract class android.support.v7.widget.RecyclerView$ViewHolder

Stack trace

java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]
	at com.firebase.ui.database.FirebaseRecyclerAdapter.onCreateViewHolder(FirebaseRecyclerAdapter.java:171)
	at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6290)
	at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5478)
	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5363)
	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5359)
	at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2141)
	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1525)
	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1488)
	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:585)
	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3506)
	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3254)
	at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1623)
	at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:331)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
	at android.view.Choreographer.doCallbacks(Choreographer.java:580)
	at android.view.Choreographer.doFrame(Choreographer.java:549)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5221)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.NoSuchMethodException: <init> [class android.view.View]
	at java.lang.Class.getConstructor(Class.java:531)
	at java.lang.Class.getConstructor(Class.java:495)
	at com.firebase.ui.database.FirebaseRecyclerAdapter.onCreateViewHolder(FirebaseRecyclerAdapter.java:168)
	... 24 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 1 year ago
23 times, 3 weeks ago
2 times, 4 months ago
6 times, 10 months ago
10 times, 11 months ago
68 more bugmates