Skip to content

folder structure reversal - app not booting up #2630

Open
@a-dominiak

Description

@a-dominiak

Ask your Question

Hi!
Our client we have a case where we need to reverse folders' structure in RN project (client's demand - also a brownfield app to be).
So that RN wouldn't wrap android and ios folder, but react-native would be a folder inside android project's folder.
I've created a boilerplate RN app (no expo) with cli and reversed the structure of file, app stopped running but that was expected, I've run npx react-native doctor and it showed it had problem with gradlew and android SDK. I've fixed gradlew, but right now I'm still facing android SDK problem and app won't boot up.

for npx react-native doctor part it shows:

✖ Android SDK - Required for building and installing your app on Android
   - Versions found: N/A
   - Version supported: Not Found

for npm run android part it shows:

error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
ERROR: autolinkLibrariesFromCommand: process npx @react-native-community/cli config exited with error code: 1 FAILURE: Build failed with an exception. * Where:
Settings file '/Users/adamdominiak/rnpoc/android/settings.gradle' line: 3 * What went wrong:
A problem occurred evaluating settings 'android'.
> ERROR: autolinkLibrariesFromCommand: process npx @react-native-community/cli config exited with error code: 1 * Try:

I've seen same case here: #2490 (comment), but it doesn't solve the issue - probably due to the fact that still there's some path mismatch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions