You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
I cleaned and built the project from git after Android Studio finally agreed on the process after it insisted on upgrading Gradle etc. But I still ended up with errors. Lint reported 4 errors and 68 warnings.
It stopped building on something related to 'com.google.http-client:google-http-client-android:+'.
It also listed Obsolete Gradle Dependency: (1) com.google.android.gms:play-services-plus:7.8.0 and (2) com.google.code.gson:gson:2.2.4.
When I upgraded to play-services-plus:11.6.0 as suggested by Gradle, it still showed a related error.
After several clean and builds import "com.google.android.gms.auth.GoogleAuthException" was finally recognized in utils.java. The Lint overview and the details on the first issue "DuplicatePlatformClasses:
Duplicate Platform Classes
../../build.gradle: commons-logging defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar.
../../build.gradle: httpclient defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar.
There are a number of libraries that duplicate not just functionality of the Android platform but using the exact same class names as the ones provided in Android -- for example the apache http classes. This can lead to unexpected crashes.
To solve this, you need to either find a newer version of the library which no longer has this problem, or to repackage the library (and all of its dependencies) using something like the jarjar tool, or finally, rewriting the code to use different APIs (for example, for http code, consider using HttpUrlConnection or a library like okhttp.)
To suppress this error, use the issue id "DuplicatePlatformClasses" as explained in the Suppressing Warnings and Errors section.
Despite all the warnings from Lint, when I suppressed the failure on errors in build.gradle, the project built and worked perfectly, uploading a test video and activating the video recorder when requested.
I'm still interested in getting a clean version of the code example using more up-to-date libraries.
@alfredmack, will give it a go. Eventually, my real problem became authentication/permissions. I couldn't get permissions to work correctly for pre and post Android 6 in one app.
I cleaned and built the project from git after Android Studio finally agreed on the process after it insisted on upgrading Gradle etc. But I still ended up with errors. Lint reported 4 errors and 68 warnings.
It stopped building on something related to 'com.google.http-client:google-http-client-android:+'.
It also listed Obsolete Gradle Dependency: (1) com.google.android.gms:play-services-plus:7.8.0 and (2) com.google.code.gson:gson:2.2.4.
When I upgraded to play-services-plus:11.6.0 as suggested by Gradle, it still showed a related error.
After several clean and builds import "com.google.android.gms.auth.GoogleAuthException" was finally recognized in utils.java. The Lint overview and the details on the first issue "DuplicatePlatformClasses:
The text was updated successfully, but these errors were encountered: