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
342 stars 44 forks source link

Resources R.java is not working properly #42

Closed impvhc closed 5 years ago

impvhc commented 5 years ago

What are the steps to reproduce this issue?

  1. create FAT-AAR using in a module implementation('com.google.android.gms:play-services-analytics:11.8.0')
  2. try to use that FAT AAR as library

What happens?

The application is not able to find some resources.. it seems that the play-services library is adding elements to R

Any logs, error output, etc?

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.) couldn't find static field Lcom/package/R$string;.common_google_play_services_enable_button couldn't find static field Lcom/package/R$attr;.buttonSize

05-31 12:26:39.915 3684-3684/com.midtronics.android.launcher E/AndroidRuntime: FATAL EXCEPTION: main Process: com.midtronics.android.launcher, PID: 3684 java.lang.NoSuchFieldError: com.midtronics.android.corelibrary.R$attr.buttonSize at com.midtronics.android.mdxui.R$attr.(R.java:179)

impvhc commented 5 years ago

just in case this happens to someone else. remember that any dependency that implemented in your module needs to be implemented also in your app