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

React-Native -- Error While Making Build After Installing this Library #149

Open
MuhammadFaisal12q opened this issue Dec 16, 2024 · 1 comment

Comments

@MuhammadFaisal12q
Copy link

MuhammadFaisal12q commented Dec 16, 2024

Project Libraries Version
"react": "18.1.0",
"react-native": "0.70.4",
Node js Version
v18.16.0
Gradle Version is
distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-all.zip

Log while Making Build

  • What went wrong:
A problem occurred evaluating the script.
> Calling `[node, D:\OfficeWork\folder\myApp.Mobile\myApp\node_modules\@react-native-community\cli\build\bin.js, config]` finished with an exception. Error message: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

  The current character read is 'i' with an int value of 105
  Unable to determine the current character, it is not a string, number, array, or object
  line number 1
  index number 0
  info Run CLI with --verbose flag for more details.
  ^. Output: info Run CLI with --verbose flag for more details.

AILURE: Build failed with an exception.

  • Where:
    Script 'D:\OfficeWork\myApp\myApp.Mobile\myApp\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 450
@prince-d-simform
Copy link
Contributor

prince-d-simform commented Dec 20, 2024

Library supports compile/target SDK 34, so you will have to upgrade your respective Target and Compile SDK versions to 34.

If you want to use with lower versions, You can consider following changes in node modules and you can create a patch for the same.

Add package="com.audiowaveform" to /node_modules/@simform_solutions/react-native-audio-waveform/android/src/main/AndroidManifest.xml.

<manifest xmlns:android="[http://schemas.android.com/apk/res/android"](http://schemas.android.com/apk/res/android%22) package="com.audiowaveform"/>

And also add package="com.swmansion.gesturehandler" to /node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml

<manifest xmlns:android="[http://schemas.android.com/apk/res/android"](http://schemas.android.com/apk/res/android%22) package="com.swmansion.gesturehandler"/>

You can create a patch and can use with lower versions, but we recommend you to use compile and Target SDK version 34.

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

2 participants