flutter插件开发

Android tools:replace用法

使用场景,为什么需要Android tools:replace 假设我们使用了第三方android module,这个module处于某种原因在开发的时候使用了app_name。比如下面这样 <application android:icon="@mipmap/ic_launcher" android:allowBackup="true" android:backupAgent="com.github.shadowsocks.ConfigBackupHelper" android:extractNativeLibs="true" android:label="@string/app_name" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" android:banner="@mipmap/banner"> ........ </application> 我们自己app也有指定android:label,那么就会产生冲突报错大致如下 Manifest merger failed : Attribut...

flutter插件引用aar导致Duplicate class android.support.v4.app.INotificationSideChannel

错误信息 Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules classes.jar (androidx.core:core:1.0.1) and classes.jar (com.android.support:support-compat:28.0.0) Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules classes.jar (androidx.core:core:1.0.1) and classes.jar (com.android.support:support-compat:28.0.0) Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules classes.jar (androidx.core:core:1.0.1) and classes.jar (com.android.support:support-compat:28.0.0) Duplicate class android.su...
执行时间: 32.181024551392 毫秒