couldn't find DSO to load: libhermes.so caused by: dlopen failed: library "libjsi.so" not found: - react-native

I try to enable hermes engine on RN- ~0.63.3 version
after running the app and making apk , unfortunately apk app got crashed and error showing in logcat
#warning
java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsi.so" not found:
#Error
couldn't find DSO to load: libhermes.so caused by: dlopen failed: library "libjsi.so" not found
RN- ~0.63.3 following official docs how to enable hermes in existing RN app
expecting app should run on enabling hermes

Related

Warning: An error occurred while preparing SDK package Android SDK Build-Tools 33.0.2: Tag mismatch

This issue arise when I download android studio.
javax.net.ssl.SSLException: Tag mismatch!
Warning: An error occurred while preparing SDK
package Android SDK Platform 33: Tag mismatch!.
javax.net.ssl.SSLException: Tag mismatch!
Warning: An error occurred while preparing SDK
package Android SDK Build-Tools 33.0.2: Tag
mismatch!.
javax.net.ssl.SSLException: Tag mismatch!
Warning: An error occurred while preparing SDK
package Android SDK Platform-Tools: Tag mismatch!.
javax.net.ssl.SSLException: Tag mismatch!
Warning: An error occurred while preparing SDK
package Android Emulator: Tag mismatch!.

React native android emulator Task :app:packageDebug FAILED error

I got this error while react-native run-android. I tried ./gradlew clean ./gradlew -stop and wipe data, remove build folder, .gradle folder etc... But can't solve the problem.
Here is the error code I got.
Does anyone has an idea to solve that problem?
$ react-native run-android
warn Package #svgr/webpack has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in (...)/node_modules/#svgr/webpack/package.json
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1888 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
Starting a Gradle Daemon, 1 incompatible and 3 stopped Daemons could not be reused, use --status for details
> Configure project :lottie-react-native
WARNING:: The specified Android SDK Build Tools version (29.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Task :app:packageDebug FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
495 actionable tasks: 5 executed, 490 up-to-date
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
(...)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key androiddebugkey from store "(...)/android/app/debug.keystore": keystore password was incorrect
* 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
BUILD FAILED in 14s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
(...)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key androiddebugkey from store "(...)/android/app/debug.keystore": keystore password was incorrect```

Error Failed to install the app. Make sure you have the Android development environment set up

I created the react-native project, then open the folder, at the terminal; After running "npm start" and then "react-native run-android" I was able to run it on the virtual device. However, when I do this from the vscode terminal, I get the following error;
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 863 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
at checkExecSyncError (child_process.js:601:13)
at execFileSync (child_process.js:621:13)
at runOnAllDevices (/home/myworldsoftware-u/İndirilenler/project2/node_modules/#react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:74:39)
at buildAndRun (/home/myworldsoftware-u/İndirilenler/project2/node_modules/#react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41)
at then.result (/home/myworldsoftware-u/İndirilenler/project2/node_modules/#react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
npx react-native doctor
This command checks your environment and displays a report of the status of react-native installation. Check the output carefully for other software you might need to install
You should change distributionUrl in android/gradle/wrapper/gradle-wrapper.properties to
distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip
You need to make focus on 2 files to check them ..either they are present or not or the code inside them is correct...
1.local.properties file
A.check that it is present or not..if yes go to step a2 or if not then:
a1. then inside the yourAppPath/Android/ you need to make a file with name local.properties
a2. And inside that put the path of android sdk
eg: sdk.dir=C\:\\Users\\UserNameDirectory\\AppData\\Local\\Android\\Sdk
B. inside yourAppPath/Android/setting.gradle
b1. check if not present then add include ':app'
Open android folder on android studio
Then wait of gradle build to complete
Issue solved
Put below line in your android/gradle.properties file:
android.useAndroidX=true
android.enableJetifier=true
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I have the same problem. At present, Android virtual machine can run normally, but running react-native run-android will cause such a problem

Build Failed after importing ios module in Appcelerator App

I am creating FBAudienceNetwork.framework module for iOS in appcelerator then using it in mobile App but getting compilation error for app.
I have created a module in appcelerator studio, i have put the FBAudienceNetwork.framework in module inside ios/patform folder, the module built successfully.
Then i am importing that module in appcelerator project while compiling it shows an error.
I have also follow this link : https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/ios_module_64-bit_support.html
The command lists the required architectures.
xcrun lipo -info libcom.usp.fbaudience.a
Architectures in the fat file: libcom.usp.fbaudience.a are: armv7 i386 x86_64 arm64
Xcode Version : 10.1
Titanium SDK : 8.0.0.GA
var facebookAudienceNetwork = require('com.usp.fbaudiancenetwork');
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld /Users/uspapps4/Documents/workspace2/fbAudienceNetworkDemo/build/iphone/build/Intermediates/fbAudienceNetworkDemo.build/Debug-iphoneos/fbAudienceNetworkDemo.build/Objects-normal/armv7/fbAudienceNetworkDemo normal armv7.

Appcelerator - ERROR Could not find all required Titanium Modules

Getting started with cloning a new Appcelerator project. I keep receiving this error. Many Appcelerator Google results are now archived and have not been able to access those Q/A.
I run the project via a Makefile that has:
all:
#${MAKE} clean
#${MAKE} compile
#${MAKE} run-sim
init:
...
#gittio install ti.airprint
#gittio install bencoding.blur
#gittio install de.marcelpociot.circularprogress
#${MAKE} all
After running make init. A long compilation process happens followed by the following
/Users/username/.nvm/versions/node/v0.12.7/bin/node /Users/username/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform ios --plugin-paths /Users/username/.appcelerator/install/5.1.0/package/node_modules --config-file /var/folders/lj/c7hfzz254cd3lt2nxscv_wgw0000gn/T/build-1453310098056.json --log-level info --no-banner
[INFO] Found Titanium module id=bencoding.blur version=0.37 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/bencoding.blur/0.37
[INFO] Found Titanium module id=de.marcelpociot.circularprogress version=1.1 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/de.marcelpociot.circularprogress/1.1
[INFO] Found Titanium module id=ti.worker version=1.1.0 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/ti.worker/1.1.0
[WARN] Could not find a valid Titanium module id=ti.airprint version=1.3.4 platform=iphone deploy-type=development
[INFO] Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=development path=/Users/username/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9
[ERROR] Could not find all required Titanium Modules:
[ERROR] id: ti.airprint version: 1.3.4 platform: iphone deploy-type: development
2016-01-20T17:15:02.058Z | ERROR | ti run exited with error code 1
make[2]: *** [run-sim] Error 1
make[1]: *** [all] Error 2
make: *** [init] Error 2
Update:
<modules>
<module platform="iphone" version="0.37">bencoding.blur</module>
<module platform="iphone" version="1.1">de.marcelpociot.circularprogress</module>
<module version="1.1.0" platform="iphone">ti.worker</module>
<module version="1.3.4" platform="iphone">ti.airprint</module>
<module platform="commonjs">ti.cloud</module>
</modules>
Update 2: After changing version on tiapp.xml to match that of the directory.
[Error: Module version mismatch. Expected 14, got 46.]
[ERROR] socket hang up
2016-01-20T18:16:24.368Z | ERROR | ti run exited with error code 100
make[2]: *** [run-sim] Error 1
make[1]: *** [all] Error 2
make: *** [init] Error 2
Changing the version number in tiapp.xml
<module version="1.3.4" platform="iphone">ti.airprint</module>
to match the projectname/modules/iphone/ti.airprint/1.4.3 did it for me. So this
<module version="1.3.4" platform="iphone">ti.airprint</module>
did it. I received other errors after doing this, but that is beyond this question.
You wrote 1.3.4 instead of 1.4.3, which is the correct version number.
1.3.4 is not existing in the releases: https://github.com/appcelerator-modules/ti.airprint/releases
The last error you see ([Error: Module version mismatch. Expected 14, got 46.]) happens when you've changed your NodeJS version. An Node (NPM) Module that uses native extensions will need to be rebuild if the NodeJS version has a different API then the previous. If you use ti then re-install that via NPM. If you use appc then do appc install 5.1.0 --force.
Appcelerator is working on detecting this and rebuilding for you.
I had compiled the module with a newer SDK than the one I was using in the project where I imported it. Appcelerator Studio pointed that out.