Gradle's copyDownloadableDepsToLibs is broken, thus a buck based android build fails
See original GitHub issueDescription
Following the _BUCK
header docs from a fresh react-native template fails to copy any libs into libs
via ./gradlew :app:copyDownloadableDepsToLibs
. The project is freshly created from npx react-native init gradletest --template react-native-template-typescript
React Native version:
System:
OS: Linux 4.19 Ubuntu 20.04.2 LTS (Focal Fossa)
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 18.31 GB / 50.14 GB
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 14.9.0 - /tmp/yarn--1615972262648-0.7182059958157456/node
Yarn: 1.22.5 - /tmp/yarn--1615972262648-0.7182059958157456/yarn
npm: 6.14.8 - ~/.nvm/versions/node/v14.9.0/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2, 29.0.3
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 1.8.0_282 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Follow the
_BUCK
header comment and run./gradlew :app:copyDownloadableDepsToLibs
Expected Results
Gradle copies deps to libs.
Actual results
Gradle finds no sources to copy:
> Task :app:copyDownloadableDepsToLibs NO-SOURCE
Task :app:copyDownloadableDepsToLibs in app Starting
Skipping task ':app:copyDownloadableDepsToLibs' as it has no source files and no previous output files.
Task :app:copyDownloadableDepsToLibs in app Finished
:app:copyDownloadableDepsToLibs (Thread[Execution worker for ':',5,main]) completed. Took 0.005 secs.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
React-native build fail: "Could not create task - Stack Overflow
A problem occurred evaluating project ':app'. Could not create task ':app:copyDownloadableDepsToLibs'. Could not create task of type 'Copy'. org ...
Read more >react native task :app:checkdebugaarmetadata failed - You.com
I am using gradle 7.1.1 and the JDK 16 This is what I have under dependencies in build.gradle ...classpath("com.android.tools.build:gradle:4.1.0") ...
Read more >Unable to configure zoom video sdk in react native project
/android/build.gradle=> // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript ...
Read more >Dealing With Problems With Building the App & Detox
A failure occurred while executing com.android.build.gradle.internal.res. ... Ensure that the following line appears in your app build script in the ...
Read more >Conflict issue with com.google.protobuf:protobuf-java and ...
Describe the bug I am attempting to test Capillary in a simple Android app (on device), but during the gradle build process.
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
@farcaller what is the solution for this issue? i am facing the same issue.
I’m closing this as this logic was completely removed and cleaned up in 0.71 on exactly to avoid problems like the one you’re facing.