coolishbee / universal-sdk-unity

The Universal SDK for Unity provides a modern way of implementing Social Login APIs.
45 stars 12 forks source link

Android 빌드시 에러 발생합니다 #50

Closed dydgus5120 closed 1 week ago

dydgus5120 commented 2 months ago

안드로이드 빌드하려고 하는데 에러가 발생합니다.

환경 정보:

에러 코드:


FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Could not find com.github.coolishbee:universal-sdk-android:3.0.9.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/coolishbee/universal-sdk-android/3.0.9/universal-sdk-android-3.0.9.pom
       - https://repo.maven.apache.org/maven2/com/github/coolishbee/universal-sdk-android/3.0.9/universal-sdk-android-3.0.9.pom
       - file:/C:/Users/dydgu/.m2/repository/com/github/coolishbee/universal-sdk-android/3.0.9/universal-sdk-android-3.0.9.pom
       - file:/C:/Projects/Project-G/Client/PG/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/universal-sdk-android-3.0.9.jar
       - file:/C:/Projects/Project-G/Client/PG/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/universal-sdk-android.jar
     Required by:
         project :launcher > project :unityLibrary

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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 47s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
coolishbee commented 2 months ago

settingsTemplate.gradle 설정을 확인해주시겠어요? maven에서 jitpack으로 저장소를 변경하면서 추가적으로 생긴 가이드인데 한글문서에는 빠져있었네요. 문서는 업데이트되었습니다.

dydgus5120 commented 2 months ago

@coolishbee

settingsTemplate.gradle 설정 을 확인하시겠습니까? maven에서 jitpack 으로 변경된 동안에는 가이드님이 할로윈 문서에 살아있었네요. 문서가 업데이트되었습니다.

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

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':unityLibrary'.
> Failed to notify project evaluation listener.
   > Could not create task ':unityLibrary:compileDebugAndroidTestKotlin'.
      > Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
   > KotlinJvmAndroidCompilation with name 'debugAndroidTest' not found.

* 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 1s

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

이번에는 이렇게 뜹니다

coolishbee commented 2 months ago

정상 작동되는 데모프로젝트 입니다. 데모 프로젝트를 테스트해보시고 잘 되신다면 gradle 설정 부분을 비교해 보시는 것도 방법이 될 것 같습니다.