Mobbeel / fataar-gradle-plugin

Gradle plugin to help embed dependencies in generated AAR artifact
https://plugins.gradle.org/plugin/com.mobbeel.plugin
Apache License 2.0
340 stars 44 forks source link

Merged aar not contain R$layout issue #12

Closed kylingo closed 5 years ago

kylingo commented 5 years ago

Hi,recently I use the fataar gradle plugin, find the merged aar not contain R$layout. Please help me check the issue, thanks~

Gradle config

// merge-sdk module build gradle

dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) compileOnly 'com.android.support:appcompat-v7:28.0.0' compileOnly 'com.android.support.constraint:constraint-layout:1.1.3'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

api project(path: ':comp-sdk')
api project(path: ':comp-featureA')
api project(path: ':comp-featureB')
api project(path: ':prov-common')
api project(path: ':libp-image')
api project(path: ':lib-image')
api project(path: ':lib-base')

}

Stack

java.lang.NoSuchFieldError: No field abc_action_bar_view_list_nav_layout of type I in class Lcom/android/component/merge/sdk/R$layout; or its superclasses (declaration of 'com.android.component.merge.sdk.R$layout' appears in /data/app/com.android.component-1/base.apk)

kylingo commented 5 years ago

Fixed, the issue is some aar contain android support package, close issue.