* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
터미널에 프리빌드 진행 시 강의내용에서는 선택지를 통해 안드로이드,ios 두 개의 폴더 설치하게 되는거 같은데 안드로이드만 설치가 되어있습니다.
이후 최종적으로 빌드과정에서 실패가 되어 해결방법을 문의드립니다.
[최종오류내용]
🤖 Android build failed:
Gradle build failed with unknown error. See logs for the "Run gradlew" (https://expo.dev/accounts/shineyes/projects/spart-myhoneytip-shine2/builds/a7b2839e-0aa0-4fc9-ab27-155378e8b32a#run-gradlew) phase for more information.
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>
작성한 코드 및 에러 메세지
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>npx expo prebuild
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
AssertionError [ERR_ASSERTION]: Invalid format of Android package name. Only alphanumeric characters, '.' and '_' are allowed, and each '.' must be followed by a letter.
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>ddd
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>npx expo prebuild
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
√ Created native project | gitignore skipped
√ Added Metro config
√ Updated package.json and added index.js entry point for iOS and Android
› Removed "main": "node_modules/expo/AppEntry.js" from package.json because we recommend using index.js as main instead
› Installing using yarn
> yarn install
Using node to generate images. This is much slower than using native packages.
› Optionally you can stop the process and try again after successfully running `npm install -g sharp-cli`.
Using node to generate images. This is much slower than using native packages.
› Optionally you can stop the process and try again after successfully running `npm install -g sharp-cli`.
√ Config synced
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>npm install -g sharp-cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
added 70 packages, and audited 71 packages in 7s
13 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>npx expo prebuild
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
√ Created native project | /android already created | gitignore skipped
√ Updated package.json and added index.js entry point for iOS and Android
› Installing using yarn
> yarn install
√ Config synced
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>eas build -p android --profile development
EAS project not configured.
√ Existing EAS project found for @shineyes/spart-myhoneytip-shine2 (id = e57b4ba5-ec08-45ca-8619-b69cbae5d39b). Configure this project? ... yes
✔ Linked local project to EAS project e57b4ba5-ec08-45ca-8619-b69cbae5d39b
Specified value for "android.package" in app.json is ignored because an android directory was detected in the project.
EAS Build will use the value found in the native code.
✔ Using remote Android credentials (Expo server)
√ Generate a new Android Keystore? ... yes
Detected that you do not have keytool installed locally.
✔ Generating keystore in the cloud...
✔ Created keystore
Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive
✔ Uploaded to EAS
Build details: https://expo.dev/accounts/shineyes/projects/spart-myhoneytip-shine2/builds/a7b2839e-0aa0-4fc9-ab27-155378e8b32a
Waiting for build to complete. You can press Ctrl+C to exit.
✖ Build failed
🤖 Android build failed:
Gradle build failed with unknown error. See logs for the "Run gradlew" (https://expo.dev/accounts/shineyes/projects/spart-myhoneytip-shine2/builds/a7b2839e-0aa0-4fc9-ab27-155378e8b32a#run-gradlew) phase for more information.
C:\Users\shine\OneDrive\바탕 화면\sparta-study-v2\spart-myhoneytip-shine2>
============================================================================================================================
알려주신 링크에서 오류뜨는 내용들만 다시 수정해서 아래에 작성했습니다
Install dependencies
31s
1
Running "yarn install" in the root dir of your repository
2
yarn install v1.22.17
3
[1/4] Resolving packages...
4
[2/4] Fetching packages...
5
[3/4] Linking dependencies...
6
[stderr]
warning "expo-splash-screen > @expo/prebuild-config@6.0.0" has unmet peer dependency "expo-modules-autolinking@>=0.8.1".
7
[stderr]
warning "react-native > react-native-codegen > jscodeshift@0.13.1" has unmet peer dependency "@babel/preset-env@^7.1.6".
8
[4/4] Building fresh packages...
9
Done in 31.63s.
Run gradlew
2m 42s
1 Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/android 2 Downloading https://services.gradle.org/distributions/gradle-7.5.1-all.zip 3 10% 4 20%. 5 30%. 6 40%. 7 50%. 8 60%. 9 70%. 10 80%. 11 90%. 12 100% 13 Welcome to Gradle 7.5.1! 14 Here are the highlights of this release: 15 - Support for Java 18 16 - Support for building with Groovy 4 17 - Much more responsive continuous builds 18 - Improved diagnostics for dependency resolution 19 For more details see https://docs.gradle.org/7.5.1/release-notes.html 20 To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon. 21 Daemon will be stopped at the end of the build 22 > Task :react-native-gradle-plugin:pluginDescriptors 23 > Task :react-native-gradle-plugin:processResources 24 > Task :react-native-gradle-plugin:compileKotlin 25 > Task :react-native-gradle-plugin:compileJava NO-SOURCE 26 > Task :react-native-gradle-plugin:classes 27 > Task :react-native-gradle-plugin:inspectClassesForKotlinIC 28 > Task :react-native-gradle-plugin:jar 29 > Configure project :expo-application 30 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 31 > Configure project :expo-constants 32 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 33 > Configure project :expo-file-system 34 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 35 > Configure project :expo-font 36 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 37 > Configure project :expo-keep-awake 38 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 39 > Configure project :expo-location 40 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 41 > Configure project :expo-modules-core 42 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 43 Checking the license for package NDK (Side by side) 23.1.7779620 in /home/expo/Android/Sdk/licenses 44 License for package NDK (Side by side) 23.1.7779620 accepted. 45 Preparing "Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)". 46 "Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" ready. 47 Installing NDK (Side by side) 23.1.7779620 in /home/expo/Android/Sdk/ndk/23.1.7779620 48 "Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" complete. 49 "Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" finished. 50 Checking the license for package CMake 3.22.1 in /home/expo/Android/Sdk/licenses 51 License for package CMake 3.22.1 accepted. 52 Preparing "Install CMake 3.22.1 (revision: 3.22.1)". 53 "Install CMake 3.22.1 (revision: 3.22.1)" ready. 54 Installing CMake 3.22.1 in /home/expo/Android/Sdk/cmake/3.22.1 55 "Install CMake 3.22.1 (revision: 3.22.1)" complete. 56 "Install CMake 3.22.1 (revision: 3.22.1)" finished. 57 > Configure project :expo-splash-screen 58 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 59 > Configure project :expo 60 Using expo modules 61 - expo-application (5.1.1) 62 - expo-constants (14.2.1) 63 - expo-file-system (15.2.2) 64 - expo-font (11.1.1) 65 - expo-keep-awake (12.0.1) 66 - expo-location (15.1.1) 67 - expo-modules-core (1.2.6) 68 - expo-splash-screen (0.18.1) 69 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL. 70 > Configure project :react-native-google-mobile-ads 71 :react-native-google-mobile-ads package.json found at /home/expo/workingdir/build/node_modules/react-native-google-mobile-ads/package.json 72 [stderr] FAILURE: Build completed with 2 failures. 73 [stderr] 1: Task failed with an exception. 74 [stderr] ----------- 75 [stderr] * Where: 76 [stderr] Build file '/home/expo/workingdir/build/node_modules/react-native-google-mobile-ads/android/build.gradle' line: 75 77 [stderr] * What went wrong: 78 [stderr] A problem occurred evaluating project ':react-native-google-mobile-ads'. 79 [stderr] > 80 [stderr] Cannot get property 'googleMobileAdsJson' on extra properties extension as it does not exist 81 [stderr] * Try: 82 [stderr] > Run with --stacktrace option to get the stack trace. 83 [stderr] > Run with --info or --debug option to get more log output. 84 [stderr] > Run with --scan to get full insights. 85 [stderr] ============================================================================== 86 [stderr] 2: Task failed with an exception. 87 [stderr] ----------- 88 [stderr] * What went wrong: 89 [stderr] A problem occurred configuring project ':react-native-google-mobile-ads'. 90 [stderr] > compileSdkVersion is not specified. Please add it to build.gradle 91 [stderr] * Try: 92 [stderr] > Run with --stacktrace option to get the stack trace. 93 [stderr] > Run with --info or --debug option to get more log output. 94 [stderr] > Run with --scan to get full insights. 95 [stderr] ============================================================================== 96 [stderr] * Get more help at https://help.gradle.org 97 [stderr] BUILD FAILED in 2m 40s 98 Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. 99 You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. 100 See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 101 5 actionable tasks: 5 executed 102 Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Fail build
1s
1 Build failed: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.