trustee-wallet / trusteeWallet

you can build your own trustee wallet from full source code
MIT License
150 stars 85 forks source link

Error after android compilation #165

Open slambyslam opened 1 year ago

slambyslam commented 1 year ago

Hi, I compiled an assembly for android, but after launching I have a strange error photo_2023-03-06_10-02-11 Please tell me how to compile correctly for Android

Turtus commented 1 year ago

do you have logs? what is actual android / emulator version you are using?

slambyslam commented 1 year ago

Unfortunately, I don't have any build logs. I use debian 11 for the build, NodeJS v14, Python v3.10, and I added in the /android/build.gradle file kotlinVersion = "1.6.0". Tested on an Android 12 phone.

Turtus commented 1 year ago

does it have some brand / model i can look in crashlytics? usually trustee issues like this - is about cutted androids without ssl libs etc, @rhrusha will give you more details

slambyslam commented 1 year ago

I compiled on another system via latest version Android Studio. But I also changed android/buld.gradle file

def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())`

allprojects {
    configurations.all {
        resolutionStrategy {
            // Remove this override in 0.65+, as a proper fix is included in react-native itself.
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
        }
    }

After that, everything worked.

Turtus commented 1 year ago

@rhrusha please add this to our readme