Closed skyworms closed 3 years ago
did u add implementation files("../../node_modules/react-native-tor/android/libs/sifir_android.aar")
in android/app/build.gradle
?
I did, yes. This was with a fresh react-native init
project as well.
@skyworms Thanks for filing the issue. Need a bit more info to help you out: Are you running this on a Simulator or device ? What model / Android version ? Is Pro-guard enabled for your project ? If so try applying this diff https://github.com/Sifir-io/sifir-rs-sdk/commit/853ec84f49e09c8f7aed72e9731e22f56860e139
Sorry for the delayed reply, What version/branch are you running ? Can you please post your Package.json ?
Sure thing. I'm running v^0.1.6
from https://www.npmjs.com/package/react-native-tor.
My package.json:
{
"name": "tortesting",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-tor": "^0.1.6"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@react-native-community/eslint-config": "^1.1.0",
"babel-jest": "^25.1.0",
"eslint": "^6.5.1",
"jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.59.0",
"react-test-renderer": "16.13.1"
},
"jest": {
"preset": "react-native"
}
}
Should be resolved in latest build
@gabidi I am facing same issue , whereas .apk works fine in all android version as well but once I push y build play store( Android ) It started crashing on opening
Play Store app crash
I connected my phone to android studio and I am getting same issue in error logs
random thought: could it be the issue with x86 vs x64 arch not present or smth..?
@Overtorment @gabidi Solution :
So the issue is with this line
so i had to insert this line insert
System.loadLibrary("sifir_android");
Commented System.load("${ai.nativeLibraryDir}/libsifir_android.so");
Has anyone else been getting the following error on Android?
I added
implementation files("../../node_modules/react-native-tor/android/libs/sifir_android.aar")
toandroid/app/build.gradle
, but is there an additional step I'm missing?This is the code I'm using:
Steps To Reproduce: