I started developping android apps with android studio (java) a few months ago.
My current app is called MyAverage and I have several versions of it, each one within a new project. Sadly I didn't know that they shouldn't have the same app id and now whenever I install/launch my newest version from within android studio on my mobile phone I get multiple MyAverages on my phone even if I uninstalled/deleted the other versions before.
Is there any way how I can fully remove the old MyAverages from my phone that I don't need and use anymore?
CodePudding user response:
change the package name for the new project
CodePudding user response:
In Your app level build.gradle Change application Id
android {
compileSdkVersion 32
buildToolsVersion "30.0.3"
viewBinding {
enabled = true
}
defaultConfig {
applicationId "com.test.myapp.package"
//Change your package name from here it will generate different package name apk for you
minSdkVersion 23
targetSdkVersion 32
versionCode 67
versionName "0.6.7"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation":
"$projectDir/schemas".toString()]
}
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}