Skip to content

build problem: Missing class com.linecorp.linesdk.BR #142

Open
@RavenLiao

Description

What did you do?

run release build:

        buildTypes {
            getByName("release") {
                isMinifyEnabled = false
                isShrinkResources = false
                isCrunchPngs = false
                proguardFiles(
                    getDefaultProguardFile("proguard-android-optimize.txt"),
                    "proguard-rules.pro"
                )
            }
        }

What did you expect?

build success

What happened actually?

build fail and show:

Missing class com.linecorp.linesdk.BR (referenced from: boolean com.linecorp.linesdk.databinding.OpenChatInfoFragmentBindingImpl.onChangeViewModelChatroomName(androidx.lifecycle.MutableLiveData, int) and 1 other context)

my solve way

add -dontwarn com.linecorp.linesdk.BR in proguard-rules.pro

environment

LINE SDK version:5.8.1
Android Studio version:Android Studio Flamingo | 2022.2.1
AGP:8.0
Gradle:8.0

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions