I\'m trying to build an Android application using the latest SDK from project files that haven\'t been updated since 2015. With a little work, I\'ve managed to get it build
I saw this error when I was forgetting to add
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
https://developer.android.com/about/versions/marshmallow/android-6.0-changes#behavior-apache-http-client
I had a similar problem, solution:
go to build.gradle(Module: app)
in debug
block and disable minifyEnabled
:
debug {
minifyEnabled false
}
I also faced same kind of issue after installing my apk. After disabling PREOPT from android.mk and building the application then it started working.
Please see the below link for reference https://groups.google.com/forum/#!topic/android-building/NWpPusXEfN0
I had the same error but it was found out that I forgot to add permission in AndroidManifest.xml. My app uses internet with a webview, so I need the permission.
<uses-permission android:name="android.permission.INTERNET" />
Also seems like there was a mistake in activity name in the manifest file.
<activity android:name=".(Wrong name)">
When I corrected these, the error disappeared.
I faced this error with Room. To solve it I just clean project then run it.
i had this problem and add this to the AndroidManifest:
<uses-library android:name="org.apache.http.legacy"
android:required="false" />