GSTJ/pegava-dating-app

Dependency problem during apk building

david-shiko opened this issue · 0 comments

I still have a problem with it.
My goal is to build /create apk rather than just run emulation.
Steps to reproduce:

git clone git@github.com:GSTJ/PegavaDatingApp.git
cd cd PegavaDatingApp/
yarn isntall
mv App.json app.json (Required to fix "Error: No config exists")
eas build -p android --local
(Here is warning, choosing no option (removing metro.config.js also helps):
It looks like that you are using a custom metro.config.js that does not extend @expo/metro-config.
This can result in unexpected and hard to debug issues, like missing assets in the production bundle.
We recommend you to abort, fix the metro.config.js, and try again.
Learn more on customizing Metro
✔ Would you like to abort? … no)

... // long installation

Final output:
[RUN_GRADLEW] FAILURE: Build completed with 2 failures.
[RUN_GRADLEW] 1: Task failed with an exception.
[RUN_GRADLEW] -----------
[RUN_GRADLEW] * Where:
[RUN_GRADLEW] Build file '/tmp/david/eas-build-local-nodejs/d39c1485-0ab1-446c-9baf-b690a2577422/build/node_modules/react-native-appearance/android/build.gradle' line: 23
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred evaluating project ':react-native-appearance'.
[RUN_GRADLEW] > Plugin with id 'maven' not found.
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] 2: Task failed with an exception.
[RUN_GRADLEW] -----------
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred configuring project ':react-native-appearance'.
[RUN_GRADLEW] > compileSdkVersion is not specified. Please add it to build.gradle
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] * Get more help at https://help.gradle.org
[RUN_GRADLEW] BUILD FAILED in 30s
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
    Error: npx exited with non-zero code: 1

Versions:

$ npm --version
8.19.3
$ node --version
v16.19.1
yarn --version
1.22.19
$ expo-cli --version
6.3.2
$ eas --version
eas-cli/3.7.2 linux-x64 node-v16.19.1

Originally posted by @david-shiko in #10 (comment)