jpt*_*ung 2 android gradle google-play-services android-studio
我正在使用Android Studio上一版本3.2.1
我已经创建了一个示例项目来测试我在主应用程序上遇到的问题.我一开始认为这是我的应用程序,但我在非常简单的测试应用程序上遇到了同样的问题.
所以在这里应用测试应用程序的重要依赖项:
classpath 'com.android.tools.build:gradle:3.2.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
Run Code Online (Sandbox Code Playgroud)
Gradle同步工作正常.但是只要我在依赖项中添加这两行
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
Run Code Online (Sandbox Code Playgroud)
Gradle sync生成2个关于2个javadoc缺失的警告:
org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-measurement-connector-impl/17.0.4/firebase-measurement-connector-impl-17.0.4-javadoc.jar
org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-core/16.0.6/firebase-core-16.0.6-javadoc.jar'
Run Code Online (Sandbox Code Playgroud)
这是一个警告,好的,但在我的主应用程序上有近100种口味,gradle生成200个失败的http请求,这显着延迟了gradle同步.
我有没有办法让gradle停止请求这些文件?
jpt*_*ung 11
经过几次测试后,问题似乎就出现了
implementation 'com.google.firebase:firebase-core:16.0.6'
Run Code Online (Sandbox Code Playgroud)
我换了它
implementation 'com.google.firebase:firebase-core:16.0.5'
Run Code Online (Sandbox Code Playgroud)
我不再收到警告了.似乎有人忘了为firebase-core的最新版本16.0.6提供所有javadoc.我可以忍受不使用最后一个版本,所以我将使用16.0.5来避免这个警告.
归档时间: |
|
查看次数: |
1343 次 |
最近记录: |