Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after android compilation #165

Open
slambyslam opened this issue Mar 9, 2023 · 5 comments
Open

Error after android compilation #165

slambyslam opened this issue Mar 9, 2023 · 5 comments
Assignees

Comments

@slambyslam
Copy link

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
Copy link
Member

Turtus commented Mar 9, 2023

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

@slambyslam
Copy link
Author

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
Copy link
Member

Turtus commented Mar 9, 2023

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
Copy link
Author

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
Copy link
Member

Turtus commented Mar 14, 2023

@rhrusha please add this to our readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants