Я обновляю старое приложение для Android для нацеливания SDK 35, чтобы исправить проблемы политики Google Play, чтобы иметь возможность продолжать вносить обновления в приложение. позаботился о устаревшем коде. < /p>
ниже мой файл Gradle < /p>
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdk 35 // Updated to SDK 35
namespace 'com.ushc.mobile.PersonalHealthDashboard'
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs
< /code>
build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral() // Replacing jcenter() as it is deprecated
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.0'
classpath 'com.google.gms:google-services:4.4.2' // Updated Google Services Plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
//tasks.register('clean', Delete) {
// delete rootProject
//}
< /code>
On google play store there is no download link because of the msg saying the app is for an older version of android when using the google play testing link. But when i install the app using adb install cmd with the apk file the app installs on an emulator and on the physical pixel device with no issue.
Подробнее здесь: https://stackoverflow.com/questions/795 ... an-interna
Приложение устанавливается без проблем с использованием ADB Install Cmd, но при установке внутреннего тестового приложен ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Обратный adb не работает при отладке сети adb tcpip/adb (беспроводная сеть)
Anonymous » » в форуме Android - 0 Ответы
- 120 Просмотры
-
Последнее сообщение Anonymous
-