这就是我作为项目的存储库所拥有的全部内容:
repositories {
jcenter()
google()
maven { url "https://maven.google.com" }
}
Run Code Online (Sandbox Code Playgroud)
这就是我作为项目依赖项的全部内容:
dependencies {
compile 'com.google.android.gms:play-services:12.0.1'
compile 'com.android.support:support-v13:27.1.1'
compile 'com.android.support:support-core-ui:27.1.1'
compile 'com.android.support:support-core-utils:27.1.1'
compile 'com.google.android.gms:play-services-appinvite:16.0.0'
compile 'com.google.firebase:firebase-core:16.0.0'
compile 'com.google.android.gms:play-services-gcm:15.0.1'
compile "com.android.support:support-core-utils:27.1.1"
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile 'com.google.android.gms:play-services-ads:15.0.1'
compile 'com.android.support:multidex:1.0.1'
}
Run Code Online (Sandbox Code Playgroud) 将Eclipse projet导入Android Studio 3.0.1之后
现在这是我的项目的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.zombieshunter.gameoverstudios"
minSdkVersion 14
targetSdkVersion 27
versionCode 3
versionName "1.0"
testInstrumentationRunner"android.support.test.runner.AndroidJUnitRunner"
ndk {
moduleName "player_shared"
}
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
productFlavors {
prod {
buildConfigField 'String', 'URL', '"http://api.abcd.com"'
}
}
dependencies {
compile 'com.google.android.gms:play-services:12.0.1'
compile 'com.android.support:support-v13:27.1.1'
compile 'com.android.support:multidex:1.0.1'
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/support-v4-19.0.1.jar')
}
}
Run Code Online (Sandbox Code Playgroud)
这是root …