Android: Failed to build standalone app
See original GitHub issueI tried to create a gitlab-ci that builds the apk automatically. But when I get to the final step of actually building with turtle-cli, it throws an error:
Failed to build standalone app
err: TypeError: Cannot read property 'android' of undefined
at Object.getOrCreateCredentials [as default] (/usr/local/share/.config/yarn/global/node_modules/turtle-cli/src/builders/utils/android/credentials.ts:22:45)
at buildAndroid (/usr/local/share/.config/yarn/global/node_modules/turtle-cli/src/builders/android.ts:22:51)
at <anonymous>
platform: "android"
I can’t seem to fix it and I’ve tried running the turtle process manually on the docker image with no luck. The dockerfile is use:
FROM dsokal/expo-turtle-android:latest
RUN sudo yarn global add node-gyp bcrypt@3.0.2 gulp-cli
RUN sudo yarn global add turtle-cli
RUN sudo turtle setup:android
I’ve setup the environmental variables via the gitlab-runner page and the commands I run within the .gitlab-ci.yml
are:
- mkdir ./dist
- git submodule sync --recursive
- git submodule update --init --recursive
- yarn install --prod
- sudo turtle build:android -o ./dist/applet.apk -u $EXPO_USERNAME -p $EXPO_PASSWORD #! DEPHRECATED: > ./dist/stdout.txt 2> ./dist/stderr.txt
I tried to look into /node_modules/turtle-cli/src/builders/utils/android/credentials.ts:22:45
, but it doesn’t seem to exist (probably due to src code). So now I’m lost.
If anyone could help me, that would be amazing 😃
Thank you in advance
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Failed to build standalone app · Issue #196 · expo/turtle - GitHub
New Issue Checklist Updated turtle-cli to the latest version (yarn global add turtle-cli or npm install --global turtle-cli).
Read more >Error: Standalone Build Failed while building apk - Expo Forums
I am a beginner and trying to build my first app. I get this error when I try to build: Standalone build failed...
Read more >expo sdk 41 - unable to build standalone apk/aab
The error is because it's(Gradle build) looking for expo-modules-splashscreen package, which is supposedly moved out of expo's main module in ...
Read more >Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >Build (React native) Android apps and generate .apk file by ...
I am trying to build Android app by using turtle cli for this i am ... Nov 9 13:06:46 turtle[19222] ERROR: Failed to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Im having the same error right now. It didn’t happen with 0.7.1
Edit: I just solved it by properly setting EXPO_ANDROID_KEYSTORE_PASSWORD and EXPO_ANDROID_KEY_PASSWORD
The fix will be included in the next release of turtle-cli.
@TRayS2 In the meantime, please see @dacevedo12’s comment and this PR’s description.