admin管理员组文章数量:1391947
I am updating an old android app to target SDK 35 to remedy Google play policy issues in order to be able to continue making updates to the app.
I've gone through: code -> inspect code code -> analyze code -> Run Inspection by Name. took care of deprecated code.
Below is my gradle file
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 {
optionspilerArgs << "-Xlint:deprecation"
}
defaultConfig {
minSdkVersion 30
targetSdkVersion 35
targetSdk 35 // Updated to SDK 35
versionCode 57
versionName "1.0"
// vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
debug {
debuggable true
}
}
// androidResources {
// noCompress 'property'
// }
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.biometric:biometric:1.1.0' // Or latest
implementation 'androidx.preference:preference:1.2.1'
// Testing
testImplementation 'junit:junit:4.13.2'
// AndroidX support
// implementation 'androidx.appcompat:appcompat:1.7.0' // Or latest
// External JAR dependencies
implementation files('lib/PhotoUtil.jar')
implementation files('lib/GenAsync.1.2.jar')
// Firebase dependencies
implementation platform('com.google.firebase:firebase-bom:33.10.0') // Or latest
implementation 'com.google.firebase:firebase-analytics:22.3.0'
implementation 'com.google.firebase:firebase-appindexing:20.0.0'
implementation 'com.google.firebase:firebase-messaging:24.1.0'
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:tools=";
xmlns:android=";>
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
<uses-feature
android:name="android.hardware.camera2"
android:required="false" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="35" />-->
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />-->
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<application
android:usesCleartextTraffic="true"
android:allowBackup="true"
android:icon="@drawable/heart_logo_2"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="com.ushc.mobile.<hidden>.Login"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.ushc.mobile.<hidden>.MainMenu"
android:exported="true" />
<activity
android:name="com.ushc.mobile.<hidden>.WebView"
android:configChanges="orientation|screenSize"
android:exported="true" />
<activity
android:name="com.ushc.mobile.<hidden>.NotificationHome"
android:exported="true" />
<activity
android:name="com.ushc.mobile.<hidden>.CampaignList"
android:exported="true" />
<activity
android:name="com.ushc.mobile.<hidden>.EventDetails"
android:exported="true" />
<activity
android:name="com.ushc.mobile.<hidden>.UploadPhoto"
android:exported="true" />
<service
android:name="com.ushc.mobile.<hidden>.Notification"
android:enabled="true"
android:exported="true" />
<activity
android:name="com.ushc.mobile.<hidden>"
android:exported="true"
android:theme="@style/AppTheme.CustomPopupTheme" />
<activity
android:name="com.ushc.mobile.<hidden>"
android:exported="true" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<service
android:name=".FirebaseMessageReceiver"
android:exported="true"
android:permission="TODO">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
</manifest>
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
//}
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.
本文标签:
版权声明:本文标题:google play - app installs with no issues using adb install cmd but when installing an internal test app on physical pixel msg s 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744671734a2618866.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论