2016-08-22 4 views
0
에 내 앱이 브라우저에서 완벽하게 잘 실행하지만 난 내 장치에서 실행할 때, 나는이 오류를 얻을

: 여기화이트 스크린 - 이온 2 안드로이드

0  758771 log  deviceready has not fired after 5 seconds. 
1  758797 log  Channel not fired: onDOMContentLoaded 
2  758932 error Uncaught TypeError: Cannot read property '6' of undefined, http://(ip address)/build/js/Reflect.js, Line: 894 

Reflect.js의 코드가 있어요,하지만 이것이 Ionic의 패키지가 제공하는 것, 코드를 변경할 수 없기 때문에이 문제를 해결할 방법을 모르겠습니다.

function CreateUUID() { 
    var data = GenRandomBytes(UUID_SIZE); 
    // mark as random - RFC 4122 § 4.4 
    data[6] = data[6] & 0x4f | 0x40; 
    data[8] = data[8] & 0xbf | 0x80; 
    var result = ""; 
    for (var offset = 0; offset < UUID_SIZE; ++offset) { 
     var byte = data[offset]; 
     if (offset === 4 || offset === 6 || offset === 8) 
      result += "-"; 
      if (byte < 16) 
       result += "0"; 
      result += byte.toString(16).toLowerCase(); 
     } 
    return result; 
} 

여기서 GenRandomBytes()은 null을 반환합니다. 누군가 제발 도와 드릴까요?

+0

[Chrome] (https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=ko)에서 원격 디버깅을 통해 Javascript 콘솔을 보았습니까?) 또는 [iOS] (https://blog.idrsolutions.com/2015/02/remote-debugging-ios-safari-on-os-x-windows-and-linux/) 용 Safari 용? – Lightbeard

+0

@ 라이트 비어드 나는 크롬을 시험해 보았습니다. // : inspect 그리고 장치가 나타나지만 그것과 상호 작용할 수 없습니다. 일반적으로 기기 이름에는 chrome : // inspect 링크의 'inspect'버튼이 있습니다. 하지만 내 경우에는 내가 거기에서도 잘못하고있는 것이 있습니까? 죄송합니다. Ionic과 Android에 익숙하지 않습니다. – adambargh

답변

0

Android Studio의 logcat과 같은 오류를 무시할 수있는 경우가 있습니다. Chrome의 웹 도구에서 볼 수 있다면 진짜 문제를 발견 할 것 같은 느낌이 들었습니다. 앱이 검사 및 웹 도구에서 볼 수하면, 내가 을 눌러 추천

I was developing for android using Android Studio. So I had almost everything installed but Chrome didn't show me the list of devices. The solution was to find adb.exe which was already on my PC, and to run adb.exe devices. That did the trick for me. – Saeed Neamati

: 특히 Chrome's remote debugging (USB debugging) not working for Samsung Galaxy S3 running android 4.3

: 크롬에서

디버깅 안드로이드 종류의 몹시 신경을 쓰는 수 있습니다

은 좀 봐 Ctrl + R
을 클릭하면 페이지로드 중에 캡처 한 Javascript/HTML/CSS 오류를 새로 고치고 볼 수 있습니다.