OneUIProject / oneui-design

Samsung's One UI design components for Android apps.
MIT License
158 stars 18 forks source link

mergeDebugResources issue #17

Closed ghost1372 closed 1 year ago

ghost1372 commented 1 year ago

Hi again, I am facing this error, And the app does not compile

Android resource linking failed
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4818: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4819: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4818: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4819: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4864: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4865: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4864: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4865: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
error: failed linking references.

Are my excludes correct?

configurations.all {
    exclude group: 'androidx.appcompat', module: 'appcompat'
    exclude group: 'androidx.core', module: 'core'
    exclude group: 'androidx.drawerlayout', module: 'drawerlayout'
    exclude group: 'androidx.viewpager2', module: 'viewpager2'
    exclude group: 'androidx.fragment', module: 'fragment'
    exclude group: 'androidx.customview', module: 'customview'
    exclude group: 'androidx.coordinatorlayout', module: 'coordinatorlayout'
    exclude group: 'androidx.swiperefreshlayout', module: 'swiperefreshlayout'
    exclude group: 'androidx.recyclerview', module: 'recyclerview'
    exclude group: 'com.google.android.material', module: 'material'
    exclude group: 'androidx.preference', module: 'preference'

}
dependencies {

    implementation 'androidx.core:core-ktx:1.6.0'
    implementation("androidx.annotation:annotation-experimental") { version { strictly("1.1.0") } }

    implementation 'io.github.oneuiproject.sesl:appcompat:1.3.0'
    implementation 'io.github.oneuiproject:design:1.2.2'
    implementation 'io.github.oneuiproject.sesl:material:1.4.0'
    implementation 'io.github.oneuiproject.sesl:viewpager2:1.1.0'
    implementation 'io.github.oneuiproject.sesl:swiperefreshlayout:1.0.0'
    implementation 'io.github.oneuiproject.sesl:recyclerview:1.3.0'
    implementation 'io.github.oneuiproject.sesl:preference:1.1.0'
    implementation 'io.github.oneuiproject.sesl:drawerlayout:1.0.0'
    implementation 'io.github.oneuiproject.sesl:coordinatorlayout:1.0.0'

    implementation 'com.airbnb.android:lottie:5.2.0'
    implementation 'io.github.oneuiproject:icons:1.0.1'

    implementation 'org.jsoup:jsoup:1.15.3'
    implementation 'com.afollestad.material-dialogs:core:3.3.0'
    implementation 'com.afollestad.material-dialogs:files:3.3.0'
    implementation 'io.github.inflationx:calligraphy3:3.1.1'
    implementation 'io.github.inflationx:viewpump:2.0.3'
}
salvogiangri commented 1 year ago

You don't have to exclude every single androidx library, just the ones that do actually conflict with your dependencies. In your case, it seems like one of the dependencies you've added require some resources that our libs don't have.

salvogiangri commented 1 year ago

Avoid using the material-dialogs library, it relies on stock androidx appcompat components as you can see here. For custom dialogs you can use the ones bundled in our design module (GridMenuDialog, ProgressDialog) or use Samsung's Picker dialogs (SeslColorPicker, SeslDatePicker or SeslTimePicker).

ghost1372 commented 1 year ago

Thank you, removing material-dialogs fixed issue๐Ÿ˜ but there is a new issue ๐Ÿ˜’, white page! image

salvogiangri commented 1 year ago

Are you trying to build the Sample App? If not I highly suggest you to start a new project from scratch. Please also provide enough useful info, like logs and the actual code you're trying to run.

ghost1372 commented 1 year ago

oh, sorry ๐Ÿ˜ my mistake, MainActivity is empty tnx for help