Mariangel Ojeda
Mariangel Ojeda

Reputation: 21

Android Studio does not generate the debugging symbols to upload them to Google Play

I am editing an android studio template, when generating the APK or the AAB it does not generate the debugging symbols that google play asks me anywhere.

My code below:

build.gradle (app)

android {

    ndkVersion "22.1.7171670"
    compileSdkVersion 30
    defaultConfig {
        applicationId "com.rales"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 4
        versionName "2.0"
        multiDexEnabled true

 
        externalNativeBuild {
            cmake {
                version "3.10.2.4988404"
            }
        }
    }

    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true

            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                    'proguard-rules.pro'

        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    lintOptions {
        disable 'GradleDependency'
    }
    useLibrary 'org.apache.http.legacy'
}


dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //google support library
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'com.google.android.gms:play-services-ads-lite:20.4.0'

    //analytics
    implementation platform('com.google.firebase:firebase-bom:28.2.0')
    implementation 'com.google.firebase:firebase-analytics'

    //Ad Networks
    implementation 'com.github.solodroidx:solodroid-ads-sdk:1.1.0'

    //notification
    implementation 'com.onesignal:OneSignal:4.4.1'

    //image library
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.makeramen:roundedimageview:2.3.0'

    //exoplayer
    implementation 'com.google.android.exoplayer:exoplayer-core:2.14.2'
    implementation 'com.google.android.exoplayer:exoplayer-dash:2.14.2'
    implementation 'com.google.android.exoplayer:exoplayer-hls:2.14.2'
    implementation 'com.google.android.exoplayer:exoplayer-ui:2.14.2'
    implementation 'com.google.android.exoplayer:exoplayer-rtsp:2.14.2'

    //rest API
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.okhttp3:okhttp:3.11.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'

    //shimmer effect
    implementation 'com.balysv:material-ripple:1.0.2'
    implementation 'com.facebook.shimmer:shimmer:0.5.0'

    implementation 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'

}

apply plugin: 'com.google.gms.google-services'

android.defaultConfig.ndk.debugSymbolLevel = 'FULL'

buil.gradle(project)

buildscript {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath 'com.google.gms:google-services:4.3.10'
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.13.4'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
        maven { url 'https://startappdev.bintray.com/maven' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Local.properties

sdk.dir=C\:\\Users\\Unknow\\AppData\\Local\\Android\\Sdk
cmake.dir=C\:\\Users\\Unknow\\AppData\\Local\\Android\\Sdk\\cmake\\3.10.2.4988404
ndk.dir=C\:\\Users\\Unknow\\AppData\\Local\\Android\\sdk\\ndk\\22.1.7171670

gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

I am using Android Studio

Android Studio Arctic Fox | 2020.3.1 Patch 3 Build # AI-203.7717.56.2031.7784292, built on September 30, 2021

At the time of generating the apk or the aab, it does not include the debugging symbols.

I appreciate your help

Upvotes: 2

Views: 2232

Answers (1)

Pierre
Pierre

Reputation: 17437

When building an Android App Bundle, the debugging symbols should be automatically be put in the .aab file for you (at least in a recent version of the Android Gradle plugin).

To verify, you can open the AAB file as a zip file (e.g. rename to .zip) then look for a directory called BUNDLE-METADATA/com.android.tools.build.debugsymbols.

Upvotes: 1

Related Questions