-
Notifications
You must be signed in to change notification settings - Fork 1.2k
resource directory does not exist firebase #1055
Comments
This is an issue with the firebase 9.6.1 aar. It does not include a res directory, which is incorrect according to the aar spec. The directory should always exist even if it is empty. This should be opened as a bug on b.android.com |
Thanks. I manually created a res folder. And i was able to build and install. but In Mainactivity on firebase initialization it crashed. Its working fine with gradle. Is there other way to add firebase in buck. |
I don't think integration of a specific library is an appropriate question for here. If it is a runtime crash, you may need to check the firebase docs or file a bug on the android tracker with the start race to find out more |
Facing similar problem with ACRA. |
several of Google's Android libraries have the same issue |
I have filled ticket to google about this: https://issuetracker.google.com/issues/77591523 please vote for it |
Even if this is a bug in the Android Gradle Plugin (which looks likely), and that bug is fixed at some point, there are still going to be lots of released libraries in the wild that are missing the res directory. Doesn't this imply that a workaround in Buck will be necessary, in practice, to avoid fairly major pain for developers that use it? |
@kageiit I have created a ticket https://partnerissuetracker.corp.google.com/issues/77591523# for them and eventually they will fix it, but as @ojw28 have mentioned buck would need workaround anyway |
Latest versions of buck do not have this issue anymore. Its been fixed a few months ago |
@kageiit thank you |
I am using okbuild for this.
ERROR: resource directory 'buck-out/bin/.okbuck/cache/unpack_com.google.firebase.firebase-core-9.6.1.aar#aar_unzip/res' does not exist
BUILD FAILED: //app:bin_debug#aapt_package failed with exit code 1:
aapt_package
stderr: ERROR: resource directory 'buck-out/bin/.okbuck/cache/unpack_com.google.firebase.firebase-core-9.6.1.aar#aar_unzip/res' does not exist
The text was updated successfully, but these errors were encountered: