Buck doesn't package java resources in to the android_library rule.
See original GitHub issueIf you add java resources to an android_library rule like so:
resources = glob([
'resources/**',
]),
resources_root = 'resources',
They do not get packaged in to the final APK, but if this same android_library rule depends on a prebuilt_jar which contains java resources, they will get packaged in to the final APK.
Here is a sample with a repro of this issue: https://github.com/fbsamples/bucksamples/compare/master...runningcode:no/resources?expand=1
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
android_library() - Buck
An android_library() rule is used to define a set of Java files that can be compiled together against the Android SDK.
Read more >Buck - building android app with multiple Gradle flavors/build ...
Just to give you the context, I have an application composed of different library modules, each having an Android-Manifest, some resources, ...
Read more >Rethinking Android app compilation with Buck
The output of a Java rule is a JAR file (Java ARchive, ... Without pipelining, Buck must completely finish compiling the library rule...
Read more >Use Java 8 language features and APIs - Android Developers
In some cases, your module may not be using the invoke or invokeExact methods even when they're included in a library dependency. So,...
Read more >build.xml - buck - Git at Google
<property name="aosp.src.dir" value="third-party/java/aosp/src" /> ... However, if the includes parameter is empty, the javac rule will build everything,.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Discussed this with @kageiit and @runningcode . Here’s a summary:
They do get picked up if
android_library
depends onprebuilt_jar
s though