Skip to content
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

Build for Android doesn't seem to be working because of Gradle. #12

Open
mark-yacoub opened this issue Mar 16, 2022 · 4 comments
Open

Comments

@mark-yacoub
Copy link

Hey - the package works great on iOS. I followed the troubleshooting for Android on the readme but i still can't build for Android. Any help will be greatly appreciated as this package is pretty dope.
Here is my build output

./gradlew build --warning-mode all

> Configure project :nodejs-mobile-react-native
Subproject ':nodejs-mobile-react-native' has location '/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android' which is outside of the project root. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Consult the upgrading guide for further information: https://docs.gradle.org/7.2/userguide/upgrading_version_7.html#deprecated_flat_project_structure
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_9sqo03728aohkz6gzaxm485t7$_run_closure1$_closure2.doCall(/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/build.gradle:4)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Task :nodejs-mobile-react-native:externalNativeBuildDebug
Build nodejs-mobile-react-native-native-lib_armeabi-v7a
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/debug/armeabi-v7a'
Build nodejs-mobile-react-native-native-lib_arm64-v8a
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/debug/arm64-v8a'
Build nodejs-mobile-react-native-native-lib_x86
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/debug/x86'
Build nodejs-mobile-react-native-native-lib_x86_64
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/debug/x86_64'

> Task :app:bundleReleaseJsAndAssets
Execution optimizations have been disabled for task ':app:bundleReleaseJsAndAssets' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:bundleLibCompileToJarDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:bundleLibResDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:bundleLibRuntimeToJarDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugJavaWithJavac' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugLibraryResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileReleaseAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:copyDebugJniLibsProjectOnly' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:extractDeepLinksDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:generateDebugBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:generateDebugRFile' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:javaPreCompileDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:mergeDebugJniLibFolders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:mergeDebugShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageDebugAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageDebugResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageReleaseRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:parseDebugLocalResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:processDebugJavaRes' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:processDebugManifest' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:stripDebugDebugSymbols' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:writeDebugAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:writeReleaseAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:bundleLibCompileToJarDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:bundleLibResDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:bundleLibRuntimeToJarDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugJavaWithJavac' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugLibraryResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileDebugShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:compileReleaseAidl' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:copyDebugJniLibsProjectOnly' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:extractDeepLinksDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:generateDebugBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:generateDebugRFile' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:javaPreCompileDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:mergeDebugJniLibFolders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:mergeDebugShaders' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageDebugAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageDebugRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageDebugResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:packageReleaseRenderscript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:parseDebugLocalResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:processDebugJavaRes' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:processDebugManifest' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:stripDebugDebugSymbols' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:writeDebugAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo'. Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':nodejs-mobile-react-native:writeReleaseAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
warning: the transform cache was reset.
                    Welcome to Metro!
              Fast - Scalable - Integrated


info Writing bundle output to:, /Users/markyacoub/Desktop/edilo/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /Users/markyacoub/Desktop/edilo/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 1 asset files
info Done copying assets

> Task :app:processReleaseMainManifest
Execution optimizations have been disabled for task ':app:processReleaseMainManifest' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/navigation_json/release/navigation.json'. Reason: Task ':app:processReleaseMainManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/navigation_json/release/navigation.json'. Reason: Task ':app:processReleaseMainManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
[androidx.vectordrawable:vectordrawable-animated:1.0.0] /Users/markyacoub/.gradle/caches/transforms-3/5232169e73d4423ea21d51876a2d84b1/transformed/vectordrawable-animated-1.0.0/AndroidManifest.xml Warning:
        Package name 'androidx.vectordrawable' used in: androidx.vectordrawable:vectordrawable-animated:1.0.0, androidx.vectordrawable:vectordrawable:1.0.1.

> Task :app:processReleaseManifest
Execution optimizations have been disabled for task ':app:processReleaseManifest' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/compatible_screen_manifest/release'. Reason: Task ':app:processReleaseManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/merged_manifest/release/AndroidManifest.xml'. Reason: Task ':app:processReleaseManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/compatible_screen_manifest/release'. Reason: Task ':app:processReleaseManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/merged_manifest/release/AndroidManifest.xml'. Reason: Task ':app:processReleaseManifest' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

> Task :nodejs-mobile-react-native:compileReleaseJavaWithJavac
Note: /Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/src/main/java/com/janeasystems/rn_nodejs_mobile/RNNodeJsMobileModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:processReleaseManifestForPackage
Execution optimizations have been disabled for task ':app:processReleaseManifestForPackage' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/merged_manifests/release'. Reason: Task ':app:processReleaseManifestForPackage' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: '/Users/markyacoub/Desktop/edilo/android/app/build/intermediates/merged_manifests/release'. Reason: Task ':app:processReleaseManifestForPackage' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

> Task :nodejs-mobile-react-native:externalNativeBuildRelease
Build nodejs-mobile-react-native-native-lib_armeabi-v7a
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/release/armeabi-v7a'
Build nodejs-mobile-react-native-native-lib_arm64-v8a
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/release/arm64-v8a'
Build nodejs-mobile-react-native-native-lib_x86
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/release/x86'
Build nodejs-mobile-react-native-native-lib_x86_64
ninja: Entering directory `/Users/markyacoub/Desktop/edilo/node_modules/nodejs-mobile-react-native/android/.cxx/cmake/release/x86_64'

> Task :app:packageDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > java.lang.OutOfMemoryError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Execution optimizations have been disabled for 4 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

BUILD FAILED in 1m 14s
87 actionable tasks: 38 executed, 49 up-to-date
@mark-yacoub
Copy link
Author

Fixed it by adding org.gradle.jvmargs=-Xmx4608m to the file android/gradle.properties and I cleared some memory from my emulator.

Wondering if that's expected. Is it known that the package bloats the APK size? right now i have a boilerplate react-native app with no other code but node-js and it's at 181MB.

@staltz
Copy link
Member

staltz commented Mar 16, 2022

Wondering if that's expected. Is it known that the package bloats the APK size? right now i have a boilerplate react-native app with no other code but node-js and it's at 181MB.

If you don't do anything clever to clean up node_modules in nodejs-assets/nodejs-project, then yeah it'll bloat the APK. But the way I use it, with noderify and deleting node_modules, my app ends up as a 42MB APK.

@mark-yacoub
Copy link
Author

hey @staltz , can you give me more info about this? my APK size is pretty high. Can you give me more detailed advice on how to use noderify and which node_modules do you delete?

@freddi301
Copy link

have a look here https://gitlab.com/staltz/manyverse/-/blob/master/package.json#L24
follow the scripts
in short, you use noderify to bundle your backend into a single file and it is the only thing you place in the nodejs-assets/node-project directory (so there is no node_modules at all)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants