Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Starter code crashes on launch #28

Open
mowdownjoe opened this issue Jul 29, 2020 · 0 comments
Open

Starter code crashes on launch #28

mowdownjoe opened this issue Jul 29, 2020 · 0 comments

Comments

@mowdownjoe
Copy link

After fixing the build errors in the starter code (Why are those even there?), attempting to run the app just causes the app to crash while trying to access the network:
2020-07-29 08:15:21.189 20117-20157/com.example.xyzreader E/AndroidRuntime: FATAL EXCEPTION: Thread-6 Process: com.example.xyzreader, PID: 20117 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion; at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:108) at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:93) at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:105) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.ProtocolVersion" on path: DexPathList[[zip file "/data/app/com.example.xyzreader-KRauDsKw7LvXzM_JzmX25w==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.xyzreader-KRauDsKw7LvXzM_JzmX25w==/lib/x86, /system/lib, /system/product/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:108) at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:93) at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:105)

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

No branches or pull requests

1 participant