Sqflite data is lost after app update/upgrade

All we need is a simple explanation of the problem, which is provided below. I’m building an app that uses sqflite^2.0.2 to store data as a local database. Everything works fine, but the problem arises when updating the application on the device: all the data is lost. It seems like the database gets deleted once … Read more

My android app keeps crashing from which seems to be a permission problem despite granting the relevant permission in the Manifest

All we need is a simple explanation of the problem, which is provided below. Below is the MainActivity code from which the problem is arising from. class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener, AdapterView.OnItemSelectedListener { private var user: FirebaseUser? = null var activity: MainActivity? = null private var mUserRef: DatabaseReference? = null private lateinit var dialog: AlertDialog … Read more

Unable to start activity ComponentInfo{app.myProject/app.myProject.ui.screens.home.MainActivity}: java.lang.IllegalStateException

All we need is a simple explanation of the problem, which is provided below. App crash while run the apk at runtime. Logcat error log E/AndroidRuntime: FATAL EXCEPTION: main Process: app.myProject, PID: 23589 java.lang.RuntimeException: Unable to start activity ComponentInfo{app.myProject/app.myProject.ui.screens.home.MainActivity}: java.lang.IllegalStateException: Hilt Activity must be attached to an @HiltAndroidApp Application. Did you forget to specify your … Read more

AndroidManifest BroadcastReceiver for external SDK

All we need is a simple explanation of the problem, which is provided below. I am trying to integrate Estimote bluetooth low energy beacons into an existing (big) Android 12 application. The problem is that the Manifest merger fails: Manifest merger failed : android:exported needs to be explicitly specified for element <receiver#com.estimote.proximity_sdk.api.TriggerBroadcastReceiver>. Apps targeting Android … Read more

AndroidManifest.xml not editable on Android Studio

All we need is a simple explanation of the problem, which is provided below. I’ve been reversing an app, but came across a problem. The AndroidManifest.xml file is not writable. I made sure that the file is not ‘read-only’ in file explorer, but it still doesn’t work. And I can’t find ‘merged text tab(?)’ sort … Read more

React Native Android: How/what is is adding the QUERY_ALL_PACKAGES permission to merged_manifests/release/AndroidManifest.xml

All we need is a simple explanation of the problem, which is provided below. I have a React Native Android app that is requesting the QUERY_ALL_PACKAGES inside android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml, as well as several other places like, android/app/build/intermediates/bundle_manifest/release/bundle-manifest/AndroidManifest.xml This permission is not requested/added to my android/app/src/main/AndroidManifest.xml. I need to find out why this permission is required. Since … Read more

Android React Native App asking for permissions that are not defined within android/app/src/main/AndroidManifest.xml

All we need is a simple explanation of the problem, which is provided below. I have a Android build of a react native app that I have uploaded to the Google Play console. I am having issues with the build of the app requesting more permissions than I have defined inside my apps android/app/src/main/AndroidManifest.xml I … Read more

Different AndroidManifest content depending on Android API Level

All we need is a simple explanation of the problem, which is provided below. Is it possible to include meta-data in my Android Manifest file for only a specific API level? I want the following line only be considered when the app is built on a phone with Android API >= 30: <meta-data android:name="disable_batch_scanning" android:value="true" … Read more

Attribute [email protected] is also present at

All we need is a simple explanation of the problem, which is provided below. After installing a new library in my android project, I get the following error: /android/app/src/debug/AndroidManifest.xml Error: Attribute [email protected] value=(Compassion) from (unknown) is also present at [com.github.master] AndroidManifest.xml:15:9-41 value=(@string/app_name). Suggestion: add ‘tools:replace="android:label"’ to <application> element at AndroidManifest.xml:6:4-36:19 to override. FAILURE: Build failed … Read more