A project that has not been updated for a long time is flashing after updating targetSdkVersion = 30 (below 29 has been mercilessly abandoned…) , this following error is reported:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer; at com.iflytek.cloud.thirdparty.an.a(SourceFile:178) at com.iflytek.cloud.thirdparty.an.b(SourceFile:309) at com.iflytek.cloud.thirdparty.an.run(SourceFile:163) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.util.ByteArrayBuffer" on path: DexPathList[[zip file "/data/app/com.qjtc.magicalar-7__z6vqbyO2enmVlUO8V7A==/base.apk"],nativeLibraryDirectories=[/data/app/com.qjtc.magicalar-7__z6vqbyO2enmVlUO8V7A==/lib/arm, /data/app/com.qjtc.magicalar-7__z6vqbyO2enmVlUO8V7A==/base.apk!/lib/armeabi-v7a, /system/lib, /hw_product/lib]]
Can’t find the class ByteArrayBuffer is deprecated, add org.apache.http.legacy to introduce this library.
Solution: Add the following codes in the <application> tag of AndroidManifest.xml:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Read More:
- How to Solve Error inflating class android.support.design.widget.FloatingActionButton
- [Solved] Spring cloud introduces zuul dependency error
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- [Solved] the request was rejected because its size (11579386) exceeds the configured maximum (10485760)
- Tencent cloud container easyexcel export excel error NoClassDefFoundError: could not initialize class sun.awt.x11fontmanager
- How to Solve Springmvc Error: org.springframework.web.servlet.DispatcherServlet
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- Hive 3.1.2 startup error reporting and resolution of guava version conflict
- Rendering Problems The following classes could not be instantiated: xml layout file could not be loaded
- com.netflix.zuul.exception.zuulexception Timeout (Fixed)
- [Easy Solution] flutter Run Error: library “libflutter.so“ not found
- Zeppelin reported an error. The JDK version is low
- [Solved] Hadoop error java.lang.nosuchmethoderror
- [Solved] Hive tez due to: ROOT_INPUT_INIT_FAILURE java.lang.IllegalArgumentException: Illegal Capacity: -38297
- [Solved] Flume Error: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
- [Sp;ved] Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Tomcat startup error: java.lang.NoClassDefFoundError
- The Ajax return value reports an error, and the spring boot development Ajax return value reports an error
- spark Program Error: ERROR01——java.lang.NullPointerException