我已将一个cordova项目导入Android Studio 3.0,但我无法在AVD中测试它。标题是我尝试同步项目时遇到的错误,在阅读了几篇帖子之后,这些是我到目前为止所采取的步骤
include ":library"
添加到settings.gradle文件像这样编辑 build.gradle(Module:CordovaLib)文件
buildscript {
repositories {
google()
}
dependencies {
implementation project(':library')
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
group = 'org.apache.cordova'
version = '6.3.0'
编辑 build.gradle(模块:android)这样的文件
apply plugin: 'com.android.application'
buildscript {
repositories {
google()
}
// Switch the Android Gradle plugin version requirement depending on the
// installed version of Gradle. This dependency is documented at
// http://tools.android.com/tech-docs/new-build-system/version-compatibility
// and https://issues.apache.org/jira/browse/CB-8143
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
repositories {
google()
}
}
这是已在文件夹结构中显示已编辑的文件
虽然我第一次使用android studio和cordova,但我真的很想做这项工作,但过去几天我们还没能解决这个问题。需要我能得到的所有帮助