Android Studio 打包问题。原来都可以,但增加了引用其它包后就不行了,求解决办法。

lzlzr001 2019-06-20 02:34:37
原来都可以打包成功,但增加了引用其它包后就不行了,求解决办法。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugAndroidTestRuntimeClasspath'.
> Could not resolve com.android.support:support-annotations:{strictly 26.1.0}.
Required by:
project :app
> Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support.test.espresso:espresso-core:3.0.2' --> 'com.android.support.test:runner:1.0.2' --> 'com.android.support:support-annotations:27.1.1'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-vector-drawable:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-core-ui:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support.test.espresso:espresso-core:3.0.2' --> 'com.android.support.test:runner:1.0.2' --> 'com.android.support.test:monitor:1.0.2' --> 'com.android.support:support-annotations:27.1.1'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-media-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-core-utils:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
> Could not resolve com.android.support:support-annotations:26.1.0.
Required by:
project :app > com.android.support:appcompat-v7:26.1.0
project :app > com.android.support:recyclerview-v7:26.1.0
project :app > com.android.support:support-vector-drawable:26.1.0
project :app > com.android.support:support-compat:26.1.0
project :app > com.android.support:support-core-ui:26.1.0
project :app > com.android.support:support-media-compat:26.1.0
project :app > com.android.support:support-core-utils:26.1.0
> Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support.test.espresso:espresso-core:3.0.2' --> 'com.android.support.test:runner:1.0.2' --> 'com.android.support:support-annotations:27.1.1'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-vector-drawable:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-core-ui:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support.test.espresso:espresso-core:3.0.2' --> 'com.android.support.test:runner:1.0.2' --> 'com.android.support.test:monitor:1.0.2' --> 'com.android.support:support-annotations:27.1.1'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-media-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-core-utils:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
> Could not resolve com.android.support:support-annotations:27.1.1.
Required by:
project :app > com.android.support.test.espresso:espresso-core:3.0.2 > com.android.support.test:runner:1.0.2
project :app > com.android.support.test.espresso:espresso-core:3.0.2 > com.android.support.test:runner:1.0.2 > com.android.support.test:monitor:1.0.2
> Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support.test.espresso:espresso-core:3.0.2' --> 'com.android.support.test:runner:1.0.2' --> 'com.android.support:support-annotations:27.1.1'
Constraint path 'myjsb:app:unspecified' --> 'com.android.support:support-annotations:{strictly 26.1.0}' because of the following reason: debugRuntimeClasspath uses version 26.1.0
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' --> 'com.android.support:support-vector-drawable:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'myjsb:app:unspecified' --> 'com.android.support:recyclerview-v7:26.1.0' --> 'com.android.support:support-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
* 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 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
13 actionable tasks: 1 executed, 12 up-to-date
...全文
313 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

80,348

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧