Skip to content

indy-vdr-react-native won't build for RN > 0.73.11 #344

@befman123

Description

@befman123

For RN above 0.73.11 the @hyperledger/indy-vdr-react-native won't build on android. Haven't tried on ios
I have tried with expo 54, 51 won't work works only for expo 50 also for RN0.73.11
node v22.20.0
Nothing but the starter code on RN / Expo and I'm obviously not using Expo Go
I'm trying to use it with credo-ts
I checked and my min-sdkversion is set to 24 not 21. Instead, what i think is going on is that the package has min sdk set to 21 but I don't understand why it would complain about my RN / Expo app having min sdk 24
All I did is use the starter expo project template
1 npx create-expo-app expofiftyone
2 cd expofiftyone && touch yarn. Lock
3 yarn add @hyperledger/indy-vdr-react-native
4 npx expo prebuild
5 npx expo run:android

Configure project :expo

Using expo modules

  • expo-asset (10.0.10)
  • expo-constants (16.0.2)
  • expo-file-system (17.0.1)
  • expo-font (12.0.10)
  • expo-keep-awake (13.0.2)
  • expo-modules-core (1.12.26)

Task :hyperledger_indy-vdr-react-native:processDebugManifest
package="org.hyperledger.indyvdr" found in source AndroidManifest.xml: /home/befik/expofiftyone/node_modules/@hyperledger/indy-vdr-react-native/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="org.hyperledger.indyvdr" from the source AndroidManifest.xml: /home/befik/expofiftyone/node_modules/@hyperledger/indy-vdr-react-native/android/src/main/AndroidManifest.xml.

Task :expo-file-system:processDebugManifest
/home/befik/expofiftyone/node_modules/expo-file-system/android/src/main/AndroidManifest.xml:6:9-8:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present

Task :expo-modules-core:processDebugManifest
/home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/AndroidManifest.xml:8:9-11:45 Warning:
meta-data#com.facebook.soloader.enabled@android:value was tagged at AndroidManifest.xml:8 to replace other declarations but no other declaration present

Task :app:processDebugMainManifest
/home/befik/expofiftyone/android/app/src/debug/AndroidManifest.xml:6:5-162 Warning:
application@android:usesCleartextTraffic was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
/home/befik/expofiftyone/android/app/src/debug/AndroidManifest.xml Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

Task :expo-modules-core:compileDebugKotlin
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:20:26 'Promise' is deprecated. AsyncFunction will crash when called. Use expo.modules.kotlin.Promise instead
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:63:51 'Promise' is deprecated. AsyncFunction will crash when called. Use expo.modules.kotlin.Promise instead
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:90:54 'Promise' is deprecated. AsyncFunction will crash when called. Use expo.modules.kotlin.Promise instead
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/CoreModule.kt:6:34 'ReactFeatureFlags' is deprecated. Deprecated in Java
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/CoreModule.kt:70:12 'ReactFeatureFlags' is deprecated. Deprecated in Java
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt:97:7 'constructor Event<T : Event<(raw) Event<*>>!>(Int)' is deprecated. Deprecated in Java
w: file:///home/befik/expofiftyone/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/JSTypeConverterHelper.kt:44:17 'get(String!): Any?' is deprecated. Deprecated in Java

Task :hyperledger_indy-vdr-react-native:configureCMakeDebug[arm64-v8a] FAILED
C/C++: /home/befik/expofiftyone/node_modules/@hyperledger/indy-vdr-react-native/android/CMakeLists.txt debug|arm64-v8a : com.google.prefab.api.NoMatchingLibraryException: No compatible library found for //ReactAndroid/fabricjni. Rejected the following libraries:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':hyperledger_indy-vdr-react-native:configureCMakeDebug[arm64-v8a]'.

[CXX1214] /home/befik/expofiftyone/node_modules/@hyperledger/indy-vdr-react-native/android/CMakeLists.txt debug|arm64-v8a : User has minSdkVersion 21 but library was built for 23 [//ReactAndroid/fabricjni]

  • 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.
Get more help at https://help.gradle.org.

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

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/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 21m 55s
160 actionable tasks: 103 executed, 57 from cache
Error: /home/befik/expofiftyone/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a exited with non-zero code: 1
Error: /home/befik/expofiftyone/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a exited with non-zero code: 1
at ChildProcess.completionListener (/home/befik/expofiftyone/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
at Object.onceWrapper (node:events:634:26)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (/home/befik/expofiftyone/node_modules/@expo/spawn-async/build/spawnAsync.js:7:23)
at spawnGradleAsync (/home/befik/expofiftyone/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:96:48)
at assembleAsync (/home/befik/expofiftyone/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:74:18)
at runAndroidAsync (/home/befik/expofiftyone/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:45:37)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions