Build android sdk 39 location permission error

I have an error when try to build android to emulator… weird that in IOS works fine

e: /usr/local/var/www/expo/OliverPetshops/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/LocationRequester.kt: (22, 29): Unresolved reference: ACCESS_BACKGROUND_LOCATION

And in my Manifiest already added BACKGROUND_LOCATION

but also there is another problem,
e: /usr/local/var/www/expo/OliverPetshops/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/LocationRequester.kt: (20, 54): Unresolved reference: Q

this line if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {} breaks because var “Q” does not exist.

I tried to rebuild with these changes
replace var Build.VERSION_CODES.Q => 29 (hardcoded temporarlly)

replace constant ACCESS_BACKGROUND_LOCATION por real value.

Tha expo permission passed successfully, now i’m facing issues with expo-splash-screen

fresh install sdk 39 works :slight_smile: