e: file:///Users/xxx/.pub-cache/hosted/pub.dev/segment_analytics-1.1.3/android/src/main/kotlin/com/segment/analytics/AnalyticsPlugin.kt:146:59 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'android.content.pm.ApplicationInfo?'.
Reproduce:
- segment-analysis: 1.1.3
- upgrade compileSdkVersion 34 to 35
- build and run android
Possible reason:
In Kotlin 35, the PackageInfo.java mark ApplicationInfo with Nullable annotation.