easemob / easemob/easemob-uikit-reactnative

react-native-audio-recorder-player已经废弃 改成react-native-nitro-sound

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Description

node_modules/react-native-chat-uikit react-native-audio-recorder-player@3.6.14 与 React Native 0.86.3 不兼容 android无法运行

Version

"react-native-chat-uikit": "2.5.6"

Output of npx react-native info

chat-tool-rn@1.0.0 android E:\work\chat-tool-rn
expo run:android

› Opening emulator Pixel_10
› Building app...
Configuration on demand is an incubating feature.

Configure project :app
?? Applying gradle plugin 'expo-max-sdk-override-plugin'
[expo-max-sdk-override-plugin] This plugin will find all permissions declared with android:maxSdkVersion. If there exists a declaration with the android:maxSdkVersion annotation and another one without, the plugin will remove the annotation from the final merged manifest. In order to see a log with the changes run a clean build of the app.
?? Applying gradle plugin 'expo-dev-launcher-gradle-plugin'

Configure project :
[ExpoRootProject] Using the following versions:

  • buildTools: 36.0.0
  • minSdk: 24
  • compileSdk: 36
  • targetSdk: 36
  • ndk: 27.1.12297006
  • kotlin: 2.1.20
  • ksp: 2.1.20-2.0.1

Configure project :expo-modules-core
Linking react-native-worklets native libs into expo-modules-core build tasks
task ':react-native-worklets:mergeDebugNativeLibs'
task ':react-native-worklets:mergeReleaseNativeLibs'

Configure project :expo

Using expo modules

  • expo-log-box (57.0.4)
  • expo-constants (57.0.17)
  • expo-dev-client (57.0.18)
  • expo-dev-launcher (57.0.19)
  • expo-dev-menu (57.0.18)
  • expo-dev-menu-interface (57.0.0)
  • expo-json-utils (57.0.1)
  • expo-manifests (57.0.1)
  • expo-modules-core (57.0.17)
  • expo-updates-interface (57.0.1)
  • [?] expo-dom-webview (57.0.1)
  • [?] expo-ui (57.0.17)
  • [?] expo-asset (57.0.16)
  • [?] expo-blur (57.0.3)
  • [?] expo-device (57.0.1)
  • [?] expo-file-system (57.0.6)
  • [?] expo-font (57.0.3)
  • [?] expo-image (57.0.4)
  • [?] expo-keep-awake (57.0.1)
  • [?] expo-linking (57.0.9)
  • [?] expo-router (57.0.20)
  • [?] expo-splash-screen (57.0.8)
  • [?] expo-status-bar (57.0.1)
  • [?] expo-system-ui (57.0.3)
  • [?] expo-web-browser (57.0.2)

Configure project :react-native-video
Kotlin version is correct: 2.1.20
AndroidX version is correct: 1.9.3
useExoplayerIMA: false
useExoplayerSmoothStreaming: true
useExoplayerDash: true
useExoplayerHls: true
useExoplayerRtsp: false
buildFromSource: false

Task :react-native-audio-recorder-player:compileDebugKotlin FAILED
e: file:///E:/work/chat-tool-rn/node_modules/.pnpm/react-native-audio-recorder_66dc2508522e271b18795315a1ab338f/node_modules/react-native-audio-recorder-player/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt:47:56 Unresolved reference 'currentActivity'.
e: file:///E:/work/chat-tool-rn/node_modules/.pnpm/react-native-audio-recorder_66dc2508522e271b18795315a1ab338f/node_modules/react-native-audio-recorder-player/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt:53:56 Unresolved reference 'currentActivity'.
e: file:///E:/work/chat-tool-rn/node_modules/.pnpm/react-native-audio-recorder_66dc2508522e271b18795315a1ab338f/node_modules/react-native-audio-recorder-player/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt:255:49 Unresolved reference 'currentActivity'.
e: file:///E:/work/chat-tool-rn/node_modules/.pnpm/react-native-audio-recorder_66dc2508522e271b18795315a1ab338f/node_modules/react-native-audio-recorder-player/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt:255:67 Unresolved reference 'applicationContext'.

Task :react-native-worklets:configureCMakeDebug[x86_64]
C/C++: CMake Warning in CMakeLists.txt:
C/C++: The object file directory
C/C++: E:/work/chat-tool-rn/node_modules/.pnpm/react-native-worklets@0.10.5760b641820d279cc4a4136da6c2b9db/node_modules/react-native-worklets/android/.cxx/Debug/2y3p394a/x86_64/CMakeFiles/worklets.dir/./
C/C++: has 197 characters. The maximum full path to an object file is 250
C/C++: characters (see CMAKE_OBJECT_PATH_MAX). Object file
C/C++: E
/work/chat-tool-rn/node_modules/.pnpm/react-native-worklets@0.10._5760b641820d279cc4a4136da6c2b9db/node_modules/react-native-worklets/Common/cpp/worklets/AnimationFrameQueue/AnimationFrameBatchinator.cpp.o
C/C++: cannot be safely placed under this directory. The build may not work
C/C++: correctly.

[Incubating] Problems report is available at: file:///E:/work/chat-tool-rn/android/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-audio-recorder-player:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details

  • 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 from a Build Scan (powered by Develocity).
Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.3.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 12s
556 actionable tasks: 25 executed, 13 from cache, 518 up-to-date
Error: E:\work\chat-tool-rn\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64 exited with non-zero code: 1
Error: E:\work\chat-tool-rn\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64 exited with non-zero code: 1
at ChildProcess.completionListener (E:\work\chat-tool-rn\node_modules.pnpm@expo+spawn-async@1.8.0\node_modules@expo\spawn-async\build\spawnAsync.js:113:23)
at Object.onceWrapper (node:events:631:26)
at ChildProcess.emit (node:events:509:28)
at cp.emit (E:\work\chat-tool-rn\node_modules.pnpm\cross-spawn@7.0.6\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess.handle.onexit (node:internal/child_process:295:12)
...
at spawnAsync (E:\work\chat-tool-rn\node_modules.pnpm@expo+spawn-async@1.8.0\node_modules@expo\spawn-async\build\spawnAsync.js:9:23)
at spawnGradleAsync (E:\work\chat-tool-rn\node_modules.pnpm@expo+cli@57.0.23
@expo+dom_f5e8d21462ca1a7591eb3f443be99006\node_modules@expo\cli\build\src\start\platforms\android\gradle.js:107:48)
at assembleAsync (E:\work\chat-tool-rn\node_modules.pnpm@expo+cli@57.0.23_@expo+dom_f5e8d21462ca1a7591eb3f443be99006\node_modules@expo\cli\build\src\start\platforms\android\gradle.js:82:18)
at runAndroidAsync (E:\work\chat-tool-rn\node_modules.pnpm@expo+cli@57.0.23_@expo+dom_f5e8d21462ca1a7591eb3f443be99006\node_modules@expo\cli\build\src\run\android\runAndroidAsync.js:85:41)
 ELIFECYCLE  Command failed with exit code 1.

Steps to reproduce

用rn0.84 运行android

Snack, code example, screenshot, or link to a repository

1

Platform
  • All
  • Android
  • iOS
SimulatorOrDevice
  • All
  • Simulator
  • Device
iOSVersion
  • All
  • iOS Earlier than 8
  • iOS 8
  • iOS 9
  • iOS 10
  • iOS 11
  • iOS 12
  • iOS 13
  • iOS 14
  • iOS 15
  • iOS 16 or above
  • Android Earlier than API Level 23
  • Android API Level 23
  • Android API Level 24
  • Android API Level 25
  • Android API Level 26
  • Android API Level 27
  • Android API Level 28
  • Android API Level 29
  • Android API Level 30
  • Android API Level 31
  • Android API Level 32
  • Android API Level 33 or above

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how react-native-chat-uikit 2.5.6 brings in react-native-audio-recorder-player, then inspect the failing Android entry point in RNAudioRecorderPlayerModule.kt. Reproduce the failure with android/gradlew.bat app:assembleDebug and identify the integration points affected by moving to react-native-nitro-sound. Done means the Android build succeeds and the existing audio functionality remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, react-native
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.