-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why everytime i run react-native run-android
i need to download an enormous tar in :downloadGlog
task❓
#1148
Comments
Hi! I know, that's annoying. Maybe this could be fixed with RN 0.69 as RN is included as source there? Would be great if someone could take a look that has experience with Gradle... |
我也遇到了和你一样的问题,查了相关资料,然后在/android/gradle.properties尾部增加了以下设置,后面构建速度快了不少 开启编译缓存org.gradle.caching=true 构建缓存android.enableBuildCache = true 分配更大的内存org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 开启并行org.gradle.parallel=true 守护进程Gradle 是基于 JVM 的构建系统,JVM 的启动和初始化需要时间,开启 Gradle Daemon 守护进程可以节省这些时间org.gradle.daemon = true 按需配置org.gradle.configureondemand=true |
can you please explain in english? i tried using google translate to understand your reply, and applied it in my gradle. this is what i got A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
> The option 'android.enableBuildCache' is deprecated.
The current default is 'false'.
It was removed in version 7.0 of the Android Gradle plugin.
The Android-specific build caches were superseded by the Gradle build cache (https://docs.gradle.org/current/userguide/build_cache.html)
|
Gradle 7.0 不支持这项设置 android.enableBuildCache = true 需要删除 |
1 similar comment
Gradle 7.0 不支持这项设置 android.enableBuildCache = true 需要删除 |
so i applied everything you suggested, but i commented on my gradle task still do the is there a workaround for Gradle 7.0? |
Temporarily Workaround:
|
This is really too slow to download |
this workaround working for me |
I'm facing the same problem here. Every time I run |
This worked for me even for |
You may also add it as a script to your For example: |
I'm not familiar with scripts, but your workaround is helpful too, thanks for posting it here! |
Still an issue. |
@SectionTN Your hack suggestion works here out of box! Tks! |
React-native-reanimated faced the same issue (ref here). They resolved this with these code changes. Please, let us know if you're planning a new release with a fix soon to skip an additional script/patch on our app. Thanks! |
Hello, this is still an issue in 2023, are we expecting an update?, is the matter being investigated? |
Can we look into this issue, or have a workaround. |
Is this being looked into? |
jusst remove it and it works for me 0_0 |
maybe we can use their approach to fix this |
thanks, it's working for me, i added a scripts to automate these copy operations: change package.json scripts :
|
This issue has been fixed by the #1306, and you can define a env: By the way, although the v3-rc will not have this kind of problem, but it's still in rc and will only support ios for now, think twice before you upgrade |
Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue. |
Question
this particular task is making my build time so long and uses enormous data to download:
is there any way i can mitigate this such as no need to download when i already have it in my machine?
Edit: apparently it will always download after i installed new package, and everything redownloaded again
What I tried
No response
VisionCamera Version
2.13.5
Additional information
The text was updated successfully, but these errors were encountered: