После обновления Android Studio и обновления GDAA до REST API Google Диска, поскольку GDAA устарел, но теперь я не могу создать свое приложение в режиме выпуска, в котором раньше не было проблем. Вот полное сообщение об ошибке:
org.gradle.api.GradleException: Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build script as follows: ... android { lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } }
И в файле lint-results-release-fatal.xml я получаю такие сообщения:
'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.
'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.
Вот мои зависимости градации:
dependencies {
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:support-core-utils:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-ads:17.1.3'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.http-client:google-http-client-gson:1.26.0'
implementation('com.google.api-client:google-api-client-android:1.26.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('com.google.apis:google-api-services-drive:v3-rev136-1.25.0') {
exclude group: 'org.apache.httpcomponents'
}
}




Попробовав все другие решения безуспешно, я внезапно обнаружил, что эта версия Android Studio 3.3.2 не обнаруживает устаревшие библиотеки, и обнаружил, что библиотека, вызывающая проблему, была следующей:
implementation 'com.google.http-client:google-http-client-gson:1.26.0'
Поскольку это предполагаемая библиотека из этого вопрос.
Я просто обновил эту библиотеку до последней версии, которая на данный момент такова:
implementation 'com.google.http-client:google-http-client-gson:1.28.0'
И проблема была решена.
Я публикую этот вопрос и даю ответ только потому, что не смог найти правильный ответ, и для тех, кто борется с той же проблемой, может быть правильным решением.