Форум для тех, кто программирует под Android
Anonymous
После установки приложения в качестве имени отображается имя пакета. Что я могу сделать?
Сообщение
Anonymous » 17 ноя 2025, 14:55
Перед установкой приложения его имя выглядит нормально. После установки он отображается как com.svc.filemanager.MyApp.
У меня есть класс MyApp. Я добавил этот класс в AndroidManifest в как android:name="MyApp". Но даже если я его удалю, после установки приложения оно появится как com.svc.filemanager.MainActivity. Это происходит только в установщике пакета. После установки приложения оно отображается в панели запуска под своим обычным именем.
Вот мой файл градиента:
Код: Выделить всё
plugins {
id 'com.android.application'
}
android {
namespace 'com.svc.filemanager'
compileSdk 34
defaultConfig {
applicationId "com.svc.filemanager"
minSdk 21
targetSdk 34
versionCode 24
versionName "2.4"
multiDexEnabled true
vectorDrawables {
useSupportLibrary true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation "androidx.multidex:multidex:2.0.1"
implementation 'com.github.Baseflow:PhotoView:2.3.0'
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.github.bumptech.glide:glide:4.16.0'
implementation 'com.pranavpandey.android:dynamic-toasts:4.2.1'
implementation 'com.github.gabriel-TheCode:AestheticDialogs:1.3.8'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01"
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation 'com.google.android.material:material:1.11.0'
implementation("androidx.preference:preference:1.2.0")
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.media:media:1.6.0'
}
Снимок экрана
Подробнее здесь:
https://stackoverflow.com/questions/798 ... ame-what-c
1763380544
Anonymous
Перед установкой приложения его имя выглядит нормально. После установки он отображается как com.svc.filemanager.MyApp. У меня есть класс MyApp. Я добавил этот класс в AndroidManifest в как android:name="MyApp". Но даже если я его удалю, после установки приложения оно появится как com.svc.filemanager.MainActivity. Это происходит только в установщике пакета. После установки приложения оно отображается в панели запуска под своим обычным именем. [code] [/code] Вот мой файл градиента: [code] plugins { id 'com.android.application' } android { namespace 'com.svc.filemanager' compileSdk 34 defaultConfig { applicationId "com.svc.filemanager" minSdk 21 targetSdk 34 versionCode 24 versionName "2.4" multiDexEnabled true vectorDrawables { useSupportLibrary true } } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } buildFeatures { viewBinding true } } dependencies { implementation "androidx.multidex:multidex:2.0.1" implementation 'com.github.Baseflow:PhotoView:2.3.0' implementation 'com.google.android.material:material:1.11.0' implementation 'com.github.bumptech.glide:glide:4.16.0' implementation 'com.pranavpandey.android:dynamic-toasts:4.2.1' implementation 'com.github.gabriel-TheCode:AestheticDialogs:1.3.8' implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01" implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation 'com.google.android.material:material:1.11.0' implementation("androidx.preference:preference:1.2.0") implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.media:media:1.6.0' } [/code] Снимок экрана Подробнее здесь: [url]https://stackoverflow.com/questions/79822100/after-the-application-is-installed-the-package-name-appears-as-the-name-what-c[/url]