FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':meeting:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class android.support.v4.app.LoaderManager found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Duplicate class android.support.v4.app.LoaderManager$LoaderCallbacks found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Duplicate class android.support.v4.app.LoaderManagerImpl found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Duplicate class android.support.v4.app.LoaderManagerImpl$LoaderInfo found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Duplicate class android.support.v4.app.LoaderManagerImpl$LoaderObserver found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Duplicate class android.support.v4.app.LoaderManagerImpl$LoaderViewModel found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Duplicate class android.support.v4.app.LoaderManagerImpl$LoaderViewModel$1 found in modules loader-28.0.0-runtime (com.android.support:loader:28.0.0) and support-fragment-27.1.0-runtime (com.android.support:support-fragment:27.1.0)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':meeting:processDebugResources'.
> Could not resolve all files for configuration ':meeting:debugCompileClasspath'.
> Could not resolve com.android.support:support-annotations:26.+.
Required by:
project :meeting
> Failed to list versions for com.android.support:support-annotations.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-annotations/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/android/support/support-annotations/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/android/support/support-annotations/maven-metadata.xml'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 57s
implementation 'com.android.support:support-annotations:26.+.'
改为:implementation 'com.android.support:support-annotations:'