Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inflating class de.codecrafters.tableview.TableView #201

Open
gustavobrunoro opened this issue Aug 31, 2020 · 1 comment
Open

inflating class de.codecrafters.tableview.TableView #201

gustavobrunoro opened this issue Aug 31, 2020 · 1 comment

Comments

@gustavobrunoro
Copy link

gustavobrunoro commented Aug 31, 2020

I am facing the following problem when trying to generate the table

android.view.InflateException: Binary XML file line # 17: Binary XML file line # 17: Error inflating class de.codecrafters.tableview.TableView
Caused by: android.view.InflateException: Binary XML file line # 17: Error inflating class de.codecrafters.tableview.TableView

E/AndroidRuntime: at android.view.View.layout(View.java:20672)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2792)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2319)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
at android.view.Choreographer.doCallbacks(Choreographer.java:761)
at android.view.Choreographer.doFrame(Choreographer.java:696)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
at de.codecrafters.tableview.TableView.setupTableDataView(TableView.java:562)
at de.codecrafters.tableview.TableView.(TableView.java:96)
at de.codecrafters.tableview.TableView.(TableView.java:81)
... 68 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.swiperefreshlayout.widget.SwipeRefreshLayout" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.consultmais.consultmais-rNuWVwD0SCMmlnyaT4DWtA==/base.apk"],nativeLibraryDirectories=[/data/app/com.consultmais.consultmais-rNuWVwD0SCMmlnyaT4DWtA==/lib/x86, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 71 more

@ISchwarz23
Copy link
Owner

Hi @gustavobrunoro,

the Importamt Line is this one:
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout

Please add the following dependencies:
dependencies {
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants