Men*_*ena 11 android cordova android-studio
我正在学习如何使用cordova构建应用程序,我现在可以通过谷歌浏览器模拟移动屏幕.我试图在android平台上测试它,这需要使用Android studio(下载3.0稳定版).导入项目后,Gradle项目同步失败,似乎存在解决CordovaLib的某些依赖项的问题.见下图
我在这里经历了几篇文章但仍然无法找到解决方案,或者考虑到这是我第一次用它学习,我可能会错过这一点.以下是设置
build.gradle(模块:CordovaLib)
和build.gradle(模块:android)
请问如何解决问题并在模拟器中运行我的应用程序?
tro*_*tto 10
是典型的迁移错误,请阅读"迁移本地模块的依赖关系配置"一节:
您应该按如下方式配置依赖项:
dependencies {
// This is the old method and no longer works for local
// library modules:
// debugImplementation project(path: ':library', configuration: 'debug')
// releaseImplementation project(path: ':library', configuration: 'release')
// Instead, simply use the following to take advantage of
// variant-aware dependency resolution. You can learn more about
// the 'implementation' configuration in the section about
// new dependency configurations.
implementation project(':library')
// You can, however, keep using variant-specific configurations when
// targeting external dependencies. The following line adds 'app-magic'
// as a dependency to only the "debug" version of your module.
debugImplementation 'com.example.android:app-magic:12.3'
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7615 次 |
| 最近记录: |