facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

Buck doesn't work with external dependencies #2584

Open khushmanvar opened 3 years ago

khushmanvar commented 3 years ago

Hi there,

I am migrating from gradle build system to buck. But the only problem occured here is buck is not identifying Material app (might be .aar for it is missing) in basic layout. Here is the error,

buck-out/gen/android/app/res#resources-symlink-tree/res/values/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'.

Building: finished in 0.6 sec (100%) 26/24 jobs, 19 updated
  Total time: 0.6 sec
Command failed with exit code 1.

command: [/home/user/Android/Sdk/build-tools/30.0.2/aapt, package, -f, -G, buck-out/gen/android/app/app#aapt_package,dex/proguard/proguard.txt, --auto-add-overlay, -S, buck-out/gen/android/app/res#resources-symlink-tree/res, --output-text-symbols, buck-out/bin/android/app/__app#aapt_package,dex_res_symbols__, -J, buck-out/bin/...
<truncated>
...

stderr: buck-out/gen/android/app/res#resources-symlink-tree/res/values/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'.

    When running <aapt_package>.
    When building rule //android/app:app#aapt_package,dex.