wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

Could not find method namespace() for arguments [com.reactnativenavigation] on extension 'android' of type com.android.build.gradle.LibraryExtension #7935

Open hamidpak013 opened 1 week ago

hamidpak013 commented 1 week ago

What happened?

A problem occurred evaluating project ':react-native-navigation'.

Could not find method namespace() for arguments [com.reactnativenavigation] on extension 'android' of type com.android.build.gradle.LibraryExtension.

What was the expected behaviour?

The react-native-navigation should start working like on API 34,

I already have tried to upgrade the library to react-native-navigation: 7.40.3, but still not working

Was it tested on latest react-native-navigation?

Help us reproduce this issue!

This issue not reported until android targeted version was 33 or less but with this targetSdkVersion = 34, this issue appears build tools version is 4.0.2

'com.android.tools.build:gradle:4.0.2'

and I can't update it just to fix this issue because because after upgrading this I stuck with the issue

Fatal Exception: create_react_context

In what environment did this happen?

React Native Navigation version: 7.25.3 React Native version: 0.67.5 Has Fabric (React Native's new rendering system) enabled: (yes/no) No Node version: v14.21.3 Device model: Google pixel 6 Screenshot 2024-11-13 at 5 12 46 PM