codelab-android-dynamic-features icon indicating copy to clipboard operation
codelab-android-dynamic-features copied to clipboard

FindViewById returns negative values For Dynamic Feature Module

Open r0shanbhagat opened this issue 1 year ago • 2 comments

I'm trying to use the DFM in my project but somehow it's returning negative values for my views, below is my project configuration:

**build.gradle(feature-moduleA)**
  defaultConfig {
        applicationId "com. sample.app"
        minSdkVersion 28
        targetSdkVersion 33
        compileSdk 33
    }

findViewById<TextView>(R.id.tvMsg).id // -2147418111
Now the catch is if we change the "minSdkVersion=24" automatically findViewById started returning the postive value:

**build.gradle(feature-moduleA)**
defaultConfig {
        applicationId "com. sample.app"
        minSdkVersion 24
        targetSdkVersion 33
        compileSdk 33
    }

findViewById<TextView>(R.id.tvMsg).id // 2139095043

Can you please provide the solution for this, I've to use minSdkVersion= 28 in my project.

r0shanbhagat avatar Jan 26 '24 17:01 r0shanbhagat

Hi @Team,

I'll keep checking for your update on this issue. Can you please examine it? It's preventing us from doing anything.

@pflammertsma , @keyboardsurfer @tdobek
@osuleymanova

r0shanbhagat avatar Feb 01 '24 17:02 r0shanbhagat

Gentle Reminder , Is there any update?

r0shanbhagat avatar Feb 08 '24 05:02 r0shanbhagat