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
Expo permissions build error [SDK39] #10283
Comments
Hi @damianrekosz, it looks like you are using slightly outdated build tools to build your app. If you are running a bare project, you have to make sure your build tools are compatible with Android Q, because of the Google restriction to build for SDK 29 and up. You can find more info about the build tools here. You should be able to upgrade by setting Hope this helps! |
Yeah, i had outdated build tools. Now everything works perfectly. |
I was getting the same error, with buildToolsVersion = "29.0.2". Pinning the expo-permissions version down to
fixed the issue. |
I am currently stuck with this. Updating build tools to lastest version and trying to compile to Nexus 5 API Level 29 still resulted in the same error. I am now trying to use expo-permission v 9.1.0, but when building with gradle, react-native-unimodule seems to find it deprecated and force its update: "Found some duplicated unimodule packages. Installed the ones with the highest version number. So the Android project receives the new code and give the same error all over again. I am currently trying to clean all build files or find how to not force this update, but up to now, no success. Does anyone have any recommendation? |
I finally solved it: first I was not using expo sdk 39 as I initially thought (it showed as version 39 at package.json, but I had not upgraded it with "expo upgrade"). But this alone would not solve the problem. I finally made it work by deleting both iOS and Android folders and ejecting my project again. Then I had some other package problems, but after fighting one by one, I can finally run my app on both iOS and Android devices. |
I was able to resolve this issue and I'll leave the steps here If anyone runs into this issue in the future in a ejected/bare React Native project:
|
I also got the same error after the upgrade, and for me, I need to upgrade the minimal SDK 28->29 in addition to |
had same issue , but using Error:
My fix, under
|
Had the same issue, using ejected expo 40 in monorepo (with yarn workspaces) Error:
Was caused by provided node_modules path in
Need to do this: https://docs.expo.io/bare/installing-unimodules/ (see using custom node_modules path) And then resolve the path this way in allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../../../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../../../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
} Hope this helps! |
Had the same error after upgrading to
|
For those that use the ejected, bare workflow. I found a workaround that solved my issue. This only worked for me because I do not use
with
|
@archcorsair your comment helped, thanks. Also, don't forget to make the same changes for iOS in Podfile: Replace:
with
|
In my case, also need to remove or comment out the following on MainApplication.java:
|
Just to add on to @hyochan answer, some of us may specify the buildToolsVersion for subprojects separately too in build.gradle file. So make sure also update the buildToolsVersion there as well. You really do not need to exclude expo-permissions like above because this is related to the build tool version and expo-permissions is actually needed for some expo packages to work.
|
This solutions worked for me: #7901 (comment) |
For the life of me I cannot solve this! I have tried everything here...would someone be willing to look at my LOG output and give me some assistance? I am sure its something simple I am overlooking. |
I can try. |
I just updated SDK version from 38 to 39 and I can't start my project. I'm getting this error:
I tried gradlew clean and npx react-native --reset-cache but nothing helps.
The text was updated successfully, but these errors were encountered: