Posts

Rename package in Android Studio

Image
 How to rename package in android studio Android studio allow you to rename your package name so if you wants to rename then follow these steps .   for example  com.example.firstApp to  my.new.awesomeApp 1.  In project pane click on little Gear icon. as shown bellow 2. Uncheck compact empty middle package.  3.       Your package directory will now be broken up into individual directories 4.        Individually select each directory you want to rename, and: ·          Right-click it ·          Select  Refactor ·          Click on  Rename ·          In the pop-up dialog, click on  Rename Package  instead of Rename Directory ·          Enter the new name and hit  Refactor ...

Android version release warning message: This App Bundle contains Java/Kotlin code, which might be obfuscated

Mostly  it's a warning message coming from the new play console, you can solve it just by setting your minimum api level to 29 or even better by uploading the retrace mapping file as described  here . Enable minify  buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile( 'proguard-android-optimize.txt' ), 'proguard-rules.pro' } } After building apk/app bundle you can find  /app/build/outputs/mapping/release/mapping.txt  file . New console will allow you to upload mapping.txt along with your apk or bundle. You can find this option from App bundles and APKs menus.