-
-
Notifications
You must be signed in to change notification settings - Fork 9
Android building error android/gradlew exited with non-zero code: 1 #31
Comments
can you give the output of the following command |
Yeah, i have the integration issue, here is the output:
|
|
It's installed, nothing has changed. |
Yes i have this outputs, but when try prebuild it gives me this ->
I saw a similar issue opened about but nothing helped there. |
it seems that your |
Duplicate of #22 |
that's why we got the postinstall in the "scripts": {
...
"postinstall": "patch-package"
} |
after the patch you need to clean up expo prebuild with : |
can you check your android.kotlinVersion=1.6.10 if it's already the case, you can try to change the version like this in the "plugins": [
[
"./plugins/withAndroidShareExtension/index",
{
...
"androidExtraBuildProperties": {
"kotlinVersion": "1.8.10"
},
}
],
], |
Yes the kotlin version is same as you described| android.kotlinVersion=1.6.10 I applied the [
"./plugins/withAndroidShareExtension/index",
{
"androidIntentFilters": ["text/*", "image/*"],
"androidExtraBuildProperties": {
"kotlinVersion": "1.8.10"
}
}
], And still got the same issue. |
:/ |
feel free to reopen if the problem persist |
Try adding this to your package.json "overrides": { |
Adding resolutions/overrides for |
i'm working on new npm package which use a native module for android. Still in beta but you can give it a try with expo 50 https://www.npmjs.com/package/expo-share-intent |
Hey, great work on this guide. Really appreciate you putting it together.
Here's the error I'm seeing after expo run:android:
✖ Error: /Users/pbonev/react/thisisdope-app/android/gradlew exited with non-zero code: 1
Error: /Users/pbonev/react/thisisdope-app/android/gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/Users/pbonev/react/thisisdope-app/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at Object.spawnAsync [as default] (/Users/pbonev/react/thisisdope-app/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at spawnGradleAsync (/Users/pbonev/react/thisisdope-app/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:72:46)
at Object.assembleAsync (/Users/pbonev/react/thisisdope-app/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:52:18)
at runAndroidAsync (/Users/pbonev/react/thisisdope-app/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:36:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.Some info that may or may not be relevant:
Expo 49
I'm in a yarn v1 workspace with my Expo app located at /packages/app, and package.json files at /package.json and /packages/app/package.json.
plugins and patches dirs copied to /plugins and /patches, not to /packages/app/*
/packages/app/package.json postinstall: expo-yarn-workspaces postinstall && patch-package
postinstall-postinstall package not installed
app.config.js plugins section:
The text was updated successfully, but these errors were encountered: