下载Weex源码,并尝试编译集成到一个已有的Android工程中(WeexDemo),总结一下操作步骤。
1. 创建一个WeexDemo的Android工程
2. 修改C:\code\WeexDemo\build.gradle
buildscript {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here;they belong
// in the individual modulebuild.gradle files
}
}
subprojects {
repositories {
//mavenCentral()
maven {
url "https://maven.google.com"
}
jcenter()
}
buildscript {
repositories {
// mavenCentral()
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
ext {
compileSdkVersion=26
buildToolsVersion="26.0.1"
minSdkVersion=14
</