Skip to content

Getting Stackoverflow error when compiling my project in android studio #16

@ghost

Description

Describe the bug
Currently, I'm using these many HMS-core libraries along with some google libraries in my project.

    implementation 'com.google.android.gms:play-services-base:17.6.0'
    implementation 'com.google.android.gms:play-services-maps:18.0.0'
    implementation 'com.google.android.gms:play-services-location:18.0.0'
    implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
    implementation 'com.google.android.gms:play-services-auth:19.2.0'

    implementation 'com.huawei.hms:location:6.2.0.300'
    implementation 'com.huawei.hms:site:6.2.0.301'
    implementation 'com.huawei.hms:maps:6.2.0.301'
    implementation 'com.huawei.hms:push:6.1.0.300'
    implementation 'com.huawei.hms:scan:2.2.0.300'

and In my app->Build.gradle these many plugins I'm using

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'com.huawei.agconnect'

When compiling and installing apk in the emulator at that time I'm getting this error. please check the attached screenshots.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:getDependencies'.
> java.lang.StackOverflowError (no error message)

Screenshots
image
image

Desktop (please complete the following information):

  • Gradle version: 7.0.3
  • Android Studio version: Android Studio Arctic Fox | 2020.3.1 Patch 3

Additional context
Note: If I'm commenting out this line or using older versions of gms libraries in that case it works fine.
// apply plugin: 'com.google.android.gms.oss-licenses-plugin'

implementation 'com.huawei.hms:location:5.1.0.303'
implementation 'com.huawei.hms:site:6.0.0.300'
implementation 'com.huawei.hms:maps:6.0.0.301'
implementation 'com.huawei.hms:push:5.3.0.301'
implementation 'com.huawei.hms:scan:2.2.0.300'

Is there a workaround for this issue? kindly, suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions