I have cloned the repository, commented out all code that references the 100ms library, and removed the library from the package.json. After doing this, the project builds successfully without any issues.
However, when I reinstall the 100ms library, the build fails with the following error:
`FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':100mslive_react-native-hms'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
`
I tried manually adding the namespace in the node_modules, but after doing that, other libraries started throwing similar errors. Without the 100ms library, everything builds fine, and the APK is generated successfully.
It seems that the issue is directly related to the integration of the 100ms library, as no other libraries cause this problem when it is removed.
100ms React Native Version
1.10.9
React Native Version
0.74.1
Steps to reproduce
Install the 100ms library.
Attempt to build the project
Expected results
What went wrong:
A problem occurred configuring project ':100mslive_react-native-hms'.
Description
I have cloned the repository, commented out all code that references the 100ms library, and removed the library from the package.json. After doing this, the project builds successfully without any issues.
However, when I reinstall the 100ms library, the build fails with the following error: `FAILURE: Build failed with an exception.
I tried manually adding the namespace in the node_modules, but after doing that, other libraries started throwing similar errors. Without the 100ms library, everything builds fine, and the APK is generated successfully.
It seems that the issue is directly related to the integration of the 100ms library, as no other libraries cause this problem when it is removed.
100ms React Native Version
1.10.9
React Native Version
0.74.1
Steps to reproduce
Expected results
Code example, screenshot, or link to a repository
{ "name": "", "version": "1.0.0", "main": "index.ts", "scripts": { "start": "expo start --dev-client", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web" }, "dependencies": { "@100mslive/react-native-hms": "^1.10.9", "@expo-google-fonts/roboto": "^0.2.3", "@expo/vector-icons": "^14.0.0", "@hookform/resolvers": "^3.6.0", "@react-native-async-storage/async-storage": "1.23.1", "@react-navigation/drawer": "^6.6.15", "@react-navigation/native": "^6.1.6", "@react-navigation/native-stack": "^6.9.12", "@tanstack/react-query": "^4.29.13", "@types/react": "~18.2.79", "axios": "^1.4.0", "date-fns": "^2.30.0", "date-fns-tz": "^3.1.3", "expo": "^51.0.9", "expo-application": "~5.9.1", "expo-camera": "~15.0.15", "expo-constants": "~16.0.2", "expo-file-system": "~17.0.1", "expo-font": "~12.0.6", "expo-keep-awake": "~13.0.2", "expo-linear-gradient": "~13.0.2", "expo-media-library": "~16.0.4", "expo-sharing": "~12.0.1", "expo-splash-screen": "~0.27.4", "expo-status-bar": "~1.12.1", "moment": "^2.30.1", "native-base": "^3.4.28", "onesignal-expo-plugin": "^2.0.3", "react": "18.2.0", "react-hook-form": "^7.44.3", "react-native": "0.74.1", "react-native-blob-util": "^0.19.11", "react-native-calendars": "^1.1305.0", "react-native-collapsible": "^1.6.1", "react-native-date-picker": "^5.0.4", "react-native-document-picker": "^9.3.0", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "~2.16.1", "react-native-image-picker": "^7.1.2", "react-native-onesignal": "^5.2.4", "react-native-pdf": "^6.7.5", "react-native-permissions": "^4.1.5", "react-native-reanimated": "~3.10.1", "react-native-safe-area-context": "4.10.1", "react-native-screens": "3.31.1", "react-native-svg": "15.2.0", "react-native-webview": "13.8.6", "typescript": "^5.3.0", "yup": "^1.2.0" }, "devDependencies": { "@babel/core": "^7.24.0", "@types/react-native": "^0.73.0", "babel-plugin-module-resolver": "^5.0.0", "react-native-svg-transformer": "^1.3.0" }, "private": true }
Logs
No response