如何将我旧的Android应用程序迁移到当前版本?
我已经在Android应用程序上使用Gradle版本5.1.1开发了
现在,我正在尝试将Android应用程序升级到当前版本。
我需要对应用程序进行更改,需要使用最新的Gradle版本进行升级。 如何升级我的Android应用程序。
build.gradle:
buildscript {
repositories {
maven {
url 'https://maven.fabric.io/public'
}
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "net.saliman:gradle-cobertura-plugin:2.4.0"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.novoda:bintray-release:0.9'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.27.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
ext {
libraryVersion = '1.0'
mavenGroupId = 'com.abcd'
siteUrl = 'https://github.com/txusballesteros/fit-chart'
gitUrl = 'https://github.com/txusballesteros/fit-chart.git'
compileSdkVersion = 28
buildToolsVersion = "28.0.3"
minSdkVersion = 21
targetSdkVersion = 28
supportLibraryVersion = "28.0.0"
junitVersion = "4.12"
}
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
repositories {
maven {
url "https://jitpack.io"
}
jcenter()
}
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
}
任何对此有所了解的人,请帮助我解决解决方案。
I have developed on android application using gradle version 5.1.1
Now I'm trying to upgrade my android application to the current version.
I need to do changes in my application, Need to upgrade with the latest gradle version.
How to upgrade my android application.
build.gradle:
buildscript {
repositories {
maven {
url 'https://maven.fabric.io/public'
}
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "net.saliman:gradle-cobertura-plugin:2.4.0"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.novoda:bintray-release:0.9'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.27.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
ext {
libraryVersion = '1.0'
mavenGroupId = 'com.abcd'
siteUrl = 'https://github.com/txusballesteros/fit-chart'
gitUrl = 'https://github.com/txusballesteros/fit-chart.git'
compileSdkVersion = 28
buildToolsVersion = "28.0.3"
minSdkVersion = 21
targetSdkVersion = 28
supportLibraryVersion = "28.0.0"
junitVersion = "4.12"
}
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
repositories {
maven {
url "https://jitpack.io"
}
jcenter()
}
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
}
Anyone having idea about this, Please help me with the solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论