question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Project with path ':@react-native-community_async-storage' could not be found in project ':app'.

See original GitHub issue

Hi, I was trying to upgrade to RN 0.60 but receive below error when compile the build and gradlew clean. Is there any step that I missed? FYI, I already unlinked the library.

Script '/Users/xxx/dev/xxx/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 107

* What went wrong:
A problem occurred evaluating project ':app'.
> Project with path ':@react-native-community_async-storage' could not be found in project ':app'.

native_modules.gradle

void addReactNativeModuleDependencies() {
    reactNativeModules.forEach { reactNativeModule ->
      def nameCleansed = reactNativeModule["nameCleansed"]
      project.dependencies {
        // TODO(salakar): are other dependency scope methods such as `api` required?
        implementation project(path: ":${nameCleansed}") // line 107
      }
    }
  }

@react-native-community/async-storage”: “^1.6.2” “react-native”: “0.60.0”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

49reactions
jordenchang55commented, Nov 18, 2019

@anniewey I had the same issue, and I fixed it by adding this line into android/setting.gradle.

apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
8reactions
annieweycommented, Oct 2, 2019

Found the issue is actually caused by this line in build.gradle. Removing it fixes the issue.

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Read more comments on GitHub >

github_iconTop Results From Across the Web

A problem occurred evaluating project ':@react-native ...
Problem. It seems you have a missing android plugin which is causing the issue for you. Solution. Instruct Gradle to download Android plugin ......
Read more >
react-native-community/async-storage - npm
An asynchronous, unencrypted, persistent, key-value storage system for React Native. Supported platforms. iOS; Android; Web · MacOS · Windows ...
Read more >
Fix Android Project ,My Project not found in root ... - YouTube
Fixed Android : Project 'MyProject' not found in root project 'MyProject', Project ' app ' not found in root project project Name 2022, ......
Read more >
Build failed (deprecated Gradle features?) - AppGyver forums
Project Name ($package.name): @appgyver/orchestra-app-standalone │ ... You are missing backgroundColor in your renative config. will use ...
Read more >
react-native-safe-area-context could not be found within the ...
error: Error: Unable to resolve module react-navigation from C:\Users\sh\NewProject\App.js: react-navigation could not be found within the project or in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found