title: React Native build failed in android, @react-native-community/cli-platform-android /native_modules.gradle' line: 130
body: <p>I've upgraded my ReactNative project from <strong>0.59 to 0.61.2</strong> iOS is building fine but in android i'm facing the issue in <strong>@react-native-community/cli-platform-android</strong> module.</p>
  
  <p>My <strong>settings.gradle</strong> file</p>
  
  <pre><code>apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
  
  </code></pre>
  
  <p>My <strong>build.gradle</strong> file</p>
  
  <pre><code>apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
  </code></pre>
  
  <p>I get the following error while building the app.</p>
  
  <pre><code>&gt; Task :app:generatePackageList FAILED
  
  FAILURE: Build failed with an exception.
  
  * Where:
  Script '/Users/yashwanth_c/Documents/projects/MobileApp/node_modules/@react-native-community/cli-platform-android
  /native_modules.gradle' line: 130
  
  * What went wrong:
  Execution failed for task ':app:generatePackageList'.
  &gt; ReactNativeModules$_generatePackagesFile_closure3
  
  * 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
  
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
  
  BUILD FAILED in 5m 21s
  4 actionable tasks: 4 executed
  </code></pre>
  
  <p>As always i've cleaned the cache and deleted the node_module folder, tried many times but no luck. Also googled for more than a week but still not able to find a fix, any advice is appreciated.</p>