Getting Apple M1 working with React-Native Android Arctic Fox

I was encountering the worst of errors with a brand new react-native android project :

“Gradle sync failed: Sync failed: reason unknown”

Luckily, I found the reason – I am using the latest Android Studio Arctic Fox and thought to check the SDK that is installed by default… voila

it’s using Android 12 preview – this doesn’t play well with the current react-native version at time of writing (0.64.2).

Simply install Android 11 then re-sync your gradle files and this error will disappear!

Hope that helps!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.