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

App was working normally, when I ran it again this error occurred, what would be a possible solution? #280

Open
rhenanteix opened this issue Nov 22, 2023 · 7 comments

Comments

@rhenanteix
Copy link

  • Where:
    Build file '/Users/rhenan/Projetos/my-project/node_modules/react-native-orientation-locker/android/build.gradle' line: 8
  • What went wrong:
    A problem occurred evaluating project ':react-native-orientation-locker'.

Could not set unknown property 'namespace' for extension 'android' of type com.android.build.gradle.LibraryExtension.

  • 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.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-orientation-locker'.

compileSdkVersion is not specified.

@saevios
Copy link

saevios commented Nov 29, 2023

Any update on this? The Problem has been ongoing for a week

@rhenanteix
Copy link
Author

Solved!!

@saevios
Copy link

saevios commented Nov 29, 2023

I am still receiving these errors. I just attempted a build Now:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file '/Users/runner/work/1/s/node_modules/react-native-orientation-locker/android/build.gradle' line: 8

  • What went wrong:
    A problem occurred evaluating project ':react-native-orientation-locker'.

Could not set unknown property 'namespace' for extension 'android' of type com.android.build.gradle.LibraryExtension.

  • 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.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-orientation-locker'.

compileSdkVersion is not specified. Please add it to build.gradle

@saevios
Copy link

saevios commented Nov 29, 2023

@c4l-michal
Copy link

c4l-michal commented Dec 5, 2023

Solved!!

How? I am facing the same issue... Could you share some details on your solution?

@tungthanh1497
Copy link

Solved!!

I'm facing the same issue for days. Please add some instructions for people like me :(

@ysancak
Copy link
Contributor

ysancak commented Dec 7, 2023

Hi there,

I've submitted a PR (#281) in response to the issue you raised regarding the react-native-orientation-locker package, specifically for version 1.0.6.

Issue Addressed: The problem stemmed from an unnecessary namespace declaration (namespace = "org.wonday.orientation") in the android/build.gradle file. This declaration is not required in the latest React Native versions and was leading to build issues or conflicts.

Changes Made: In my PR, I've removed this line from the android/build.gradle file. This modification aims to align the package with current React Native standards and practices, enhancing compatibility and stability.

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

5 participants