문제 내용
  • Project Build 시
    "java.lang.UnsupportedOperationException: This Feature requires ASM7 See the Console for details."
    문구가 나오면서 Build가 실패 되는 현상
증상
  • Build 시 나오며 잘되던 빌드도 어느순간 해당 이슈가 간헐적으로 발생함.
해결 방법
  • 최소 API 레벨 변경 하여 빌드 진행
    -> Build 가 진행되기는 하지만 API 레벨을 변경해야 하므로 좋은 방법은 아닌듯 싶다.
  • 프로젝트 최상위에서 [Library] - [Bee] 경로로 이동 후 Android 폴더 삭제
    -> 프로젝트 설정을 변경 안해도 되므로 좋은 해결책인듯 싶다.

ProjectBrowser.OnGUI.repaint 상태


문제 내용
  • Project를 시작시 해당 "ProjectBrowser.OnGUI.repaint" 문구가 나오면서 무한 대기 타는 현상

증상
  • 무한 대기 카운트 진행.
  • Unity Library를 지우고 다시 시작해도 해당 증상 있음.
  • 다른 Project를 열어도 동일한 현상 있음.
  • 결과론 적으로 Plastic SCM의 계정 로그인이 풀린 상태.

해결방법

1.별도 프로그램으로 Plastic SCM 실행.

2.Plastic SCM 에 Unity 계정 로그인

3.Unity 다시 Open.

 

위와 같이 진행시 해결 되었습니다. ㅠ

몇시간을 날린건지... 

 


참고문서

https://answers.unity.com/questions/1890967/help-unity-project-wont-open-stuck-on-projectbrows.html

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings


문제 내용

Project 를 생성하게 되면 기본적으로 Input System 이 Input Manager 로 설정 되는것을 확인할 수 있다. (2021.3.13f1 Standard 기준) 

 

관련해서 확인해아 하는 부분은 다음과 같다

  • Input Manager : [Edit] - [Project Settings] - [Input Manager] 

 

  • Active Input Handling* : [Edit] - [Project Settings] - [Player] - [Other Setting] - [Configuration] - [Active Input Handling*]

위의 정보가 기본 설정 값인데

여기서 새로 추가된 Input System Package 라고 Package Manager 에서 설치하게 되면 

Input System이 기존의 Input Manager와 Input System으로 두 가지가 되는 상황이고 

여기서 Input System Handling 옵션을 어느 하나로 지정했을 경우 충돌이 생기는 현상으로 판단된다.


증상

 

만약 Active Input Handling* 정보가 다음과 같이 

Input System Package (New)로 설정되있다면

Input Manager 정보가 변경되 있다는 것을 확인할 수 있다. 

입력 처리가 Input system package로 전환되서 Input manager가 사용되지 않는다는 내용이며

이 상태에서 기존에 사용했던 형태로 Input 기능을 사용하면 해당 Error 가 발생한다. 

public class TestInput : MonoBehaviour
{
    void Update()
    {
        if(Input.GetKey(KeyCode.A))
        {
            Debug.Log("A");
        }
    }
}

Error 발생


해결 방법

Active Input Handling 값을 Both로 설정 한다. 

-> [Edit] - [Project Settings] - [Player] - [Other Setting] - [Configuration] - [Active Input Handling*] - [Both]


참고자료

App 의 절전에 대한 설정 방법이다. 

 



참고자료 : https://docs.unity3d.com/ScriptReference/SleepTimeout.html

1.절전 모드 끄기 

Screen.sleepTimeout = SleepTimeout.NeverSleep;

2.시스템 설정 절전 모드 

Screen.sleepTimeout = SleepTimeout.SystemSetting;

 

Unity에서 Play를 한는데 다음과 같은 문구가 계속 발생하여 확인을 해보았다.

<Unity 상 에러문구>

자세하게는 형태를 띄우고 있고 Remote 관련 문제인듯 하다.

CommandInvokationFailure: Unity Remote requirements check failed
F:\ProgramFiles\Unity\2020.3.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe forward tcp:7201 tcp:7201

stderr[
error: no devices/emulators found
]
stdout[


]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.ADB.Run (System.String[] command, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)

<해결방안>

-Device 기능 None 처리 

[Edit] - [Project Settings] - [Editor] - [Device] 에서 None을 설정 하면된다. 

 

<문제내용>

Unity상에서 Play할때 발생하였다.

Importing (busy for 시간) 형태로 표시되며 상당한 시간을 잡아먹는 현상이다.

Importing (busy for 시간) Image

 

계속 기달리면 되나 해서 기달려 봤었는데 15분쯤 지나서 Play가 되긴하였다.

다시 Play를 하면  Importing (busy for 시간) 메시지가 다시 뜨고 처음부터 카운터를 한다.  (--;)

 

<예상되는 발생 경로>

확실친 않지만 내경우에는

Unity버전을 2020.1.5f1 에서 2020.3.2f1으로 올리고 나서 나타났었다

 

 

<해결 방안>

1.visual studio을 먼저 열고 유니티를 Open 

1)Unity가 켜져 있으면 Close한다.

2)Unity Project 경로에서 [projectname].sln 파일을 찾아 실행한다. 

3)Unity를 다시 Open 하고 Play한다. 

 

2.Library를 삭제

Unity Forum을 확인하다보면 Library를 삭제하여 해결됬다는 문구가 있다. (내경우 이 방법은 안됨)

https://forum.unity.com/threads/importing-busy-for-x-hours.1067774/

 

+ Recent posts