Unity

[Unity] 유니티 안드로이드 빌드할 때 stderr[error: device offline] ... Please make sure the Android SDK is installed and is properly configured in the Editor 등 의 에러 메시지가 뜰 때 해결법.

정보처리마법사 2017. 2. 22. 16:43
반응형

[Unity] 유니티 안드로이드 빌드할 때 when build stderr[error: device offline] ... Please make sure the Android SDK is installed and is properly configured in the Editor 등 의 에러 메시지가 뜰 때 해결법.



유니티 stderr[ error: device offline ] 에러 뜰 때

 

안녕하세요 정보처리마법사 입니다.

 

이번 포스팅의 주제는 유니티에서 앱을 만들고 안드로이드 디바이스 테스트를 위한 빌드 시 뜨는 에러 메시지에 관한 내용입니다.

일단 콘솔창의 에러 메시지가 위 스샷과 같이 뜹니다.

로그는 좀 길지만... 아래처럼 뜹니다. (살짝 스압 주의)






CommandInvokationFailure: Unable to retrieve device properties. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. 

C:/SDK\platform-tools\adb.exe -s "ff1e7d68" shell getprop


stderr[

error: device offline

]

stdout[


]

UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.AndroidDevice.get_Properties ()

UnityEditor.Android.AndroidDevice..ctor (System.String deviceId)

UnityEditor.Android.PostProcessAndroidPlayer.FindDevice ()

UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)

UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)

UnityEditor.HostView:OnGUI()



CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. 

C:/SDK\platform-tools\adb.exe -s "ff1e7d68" install -r "C:\Users\KIM_JC\Desktop\Lactobacillus\Temp\StagingArea\Package.apk"


stderr[

]

stdout[

[  0%] /data/local/tmp/Package.apk

[  0%] /data/local/tmp/Package.apk

[  0%] /data/local/tmp/Package.apk

[  1%] /data/local/tmp/Package.apk

[  1%] /data/local/tmp/Package.apk

[  1%] /data/local/tmp/Package.apk

[  2%] /data/local/tmp/Package.apk

[  2%] /data/local/tmp/Package.apk

[  2%] /data/local/tmp/Package.apk

[  3%] /data/local/tmp/Package.apk

[  3%] /data/local/tmp/Package.apk

adb: error: failed to copy 'C:\Users\KIM_JC\Desktop\Lactobacillus\Temp\StagingArea\Package.apk' to '/data/local/tmp/Package.apk': no response: Connection reset by peer

]

UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.AndroidDevice.Install (System.String apkfile, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)

UnityEditor.Android.PostProcessAndroidPlayer.UploadAndStartPlayer (System.String manifestName, System.String stagingArea, UnityEditor.Android.AndroidDevice device, System.String packageName, Boolean developmentPlayer, Boolean retryUpload)

UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)

UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)

UnityEditor.HostView:OnGUI()




CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. 
C:/SDK\platform-tools\adb.exe -s "ff1e7d68" install -r "C:\Users\KIM_JC\Desktop\Lactobacillus\Temp\StagingArea\Package.apk"

stderr[

]
stdout[
[  0%] /data/local/tmp/Package.apk
[  0%] /data/local/tmp/Package.apk
[  0%] /data/local/tmp/Package.apk
[  1%] /data/local/tmp/Package.apk
[  1%] /data/local/tmp/Package.apk
[  1%] /data/local/tmp/Package.apk
[  2%] /data/local/tmp/Package.apk
[  2%] /data/local/tmp/Package.apk
[  2%] /data/local/tmp/Package.apk
[  3%] /data/local/tmp/Package.apk
adb: error: failed to copy 'C:\Users\KIM_JC\Desktop\Lactobacillus\Temp\StagingArea\Package.apk' to '/data/local/tmp/Package.apk': no response: Connection reset by peer
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Install (System.String apkfile, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.PostProcessAndroidPlayer.UploadAndStartPlayer (System.String manifestName, System.String stagingArea, UnityEditor.Android.AndroidDevice device, System.String packageName, Boolean developmentPlayer, Boolean retryUpload)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.HostView:OnGUI()



CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. 
C:/SDK\platform-tools\adb.exe -s "ff1e7d68" install -r "C:\Users\KIM_JC\Desktop\Lactobacillus\Temp\StagingArea\Package.apk"

stderr[

]
stdout[
[  0%] /data/local/tmp/Package.apk
[  0%] /data/local/tmp/Package.apk
[  0%] /data/local/tmp/Package.apk
[  1%] /data/local/tmp/Package.apk
[  1%] /data/local/tmp/Package.apk
[  1%] /data/local/tmp/Package.apk
[  2%] /data/local/tmp/Package.apk
[  2%] /data/local/tmp/Package.apk
[  2%] /data/local/tmp/Package.apk
[  3%] /data/local/tmp/Package.apk
[  3%] /data/local/tmp/Package.apk
[  3%] /data/local/tmp/Package.apk
adb: error: failed to copy 'C:\Users\KIM_JC\Desktop\Lactobacillus\Temp\StagingArea\Package.apk' to '/data/local/tmp/Package.apk': no response: Connection reset by peer
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Install (System.String apkfile, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.PostProcessAndroidPlayer.UploadAndStartPlayer (System.String manifestName, System.String stagingArea, UnityEditor.Android.AndroidDevice device, System.String packageName, Boolean developmentPlayer, Boolean retryUpload)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.HostView:OnGUI()

 

 

관련 검색을 해보면 SDK 를 업데이트 하세요, 재부팅하세요, 개발자 모드 확인하세요, 드라이버를 새로 설치하세요, 안드로이드 버전 타는 문제입니다, 4.2.2 에서 자주 발생하는 문제입니다, SDK 매니저 관련 문제입니다. 깃허브 가서 다른 버전의 SDK MANAGER버전을 받아서 설치하세요 등등 의 아주 심각한 문제인듯한 답변들이 많습니다. 물론 정말 그 문제 때문에 발생할 수 도 있지만, 저 같은 경우는 예전에 이런 같은 현상을 겪은 적이 있었는데 그때도 저런 답변과 전혀 상관없이 해결했던 기억이 어렴풋이 났습니다. 그래서 뭐가 뒷통수가 쎄 - 한 느낌을 받아서 제 PC의 10개의 USB 포트에 하나하나 다 연결해 봤습니다. 


혹시나 했는데 역시나

제 피씨의 다른 USB 포트에 연결하니 잘 됩니다.

OTL

 

이상으로 포스팅을 마칩니다. 감사합니다.





Fin.


잘 못 된 정보가 있으면 말씀해주세요~


공감버튼 클릭은 작성자에게 큰 힘이 됩니다.  행복한 하루 되세요.


 


반응형