μœ λ‹ˆν‹°λ‘œ λͺ¨λ°”일 κ²Œμž„ κ°œλ°œν•˜λŠ” 개발자인데

ꡬ글 μ½˜μ†” μ•Œλ¦Όμ— 뜬 μš”κ΅¬μ‚¬ν•­μΈ

- 결제 라이브러리 버전 6 이상
- νƒ€κ²Ÿ API 34이상

을 λ§žμΆ”λ €κ³  IAPλ₯Ό μ—…λ°μ΄νŠΈν•˜κ³  λΉŒλ“œν•˜λ €λŠ”λ° μ „μ—λŠ” 잘 λ˜μ—ˆλ˜ λΉŒλ“œκ°€ μ•ˆλ˜λŠ” λ¬Έμ œκ°€ μƒκ²ΌμŒ


μœ λ‹ˆν‹° 버전은 2022.3.14, gradle 버전은 7.2이고

μ—λŸ¬ λ‚΄μš©μ€ μ•„λž˜μ™€ κ°™μŒ

1번

> Configure project :
Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'
Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'build.gradle'
Build was configured to prefer settings repositories over project repositories but repository 'flatDir' was added by build file 'build.gradle'

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)



2번

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':launcher'.
> Could not resolve all artifacts for configuration ':launcher:classpath'.
> Could not find com.android.tools.build:gradle:7.2.
Searched in the following locations:
Required by:
project :launcher

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


3λ²ˆμ§ΈλŠ” λ‚΄μš©μ΄ κΈΈκ³  μ•žμ΄λž‘ κ²ΉμΉ˜λŠ” λ‚΄μš©λ„ μžˆμ–΄μ„œ μ•žλΆ€λΆ„λ§Œ 올릴게

CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2022.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"




μ•„λž˜ 글에 λ‚˜μ˜¨ 해결책도 μ‹€ν–‰ν•΄λ΄€λŠ”λ° 아직 ν•΄κ²° λͺ»ν•œ μƒν™©μž„ 제발 λ„μ™€μ€˜


https://discussions.unity.com/t/cannot-change-dependencies-of-dependency-configuration-gradle-error-in-unity-iap-4-12-0/949604/12


https://gall.dcinside.com/mgallery/board/view/?id=game_dev&no=163976&s_type=search_subject_memo&s_keyword=iap&page=1