tôi tạo ra một dự án mới của PhoneGap 2.7, và mở dự án bằng cách sử dụng nhật thực và giả lập Android với việc sử dụng "tùy chọn sử dụng GPU", đây là ảnh chụp màn hìnhAVD "sử dụng máy chủ GPU" gây ra màn hình đen khi thử nghiệm các ứng dụng
Nếu tôi không sử dụng "sử dụng tùy chọn GPU", biểu trưng có thể được hiển thị, nhưng nền phía trên vẫn còn màu đen.
cần có một logo ở trung tâm nhấp nháy và với một nền màu xám (không đen), bất kỳ ai biết vấn đề là gì?
06-14 02:02:54.799: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:54.799: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 5, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:54.860: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:54.860: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 9, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:54.968: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:54.968: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 13, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.027: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.027: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 6, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.107: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.107: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 10, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.147: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.147: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 15, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.237: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.237: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 7, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.277: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.288: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 11, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.317: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.327: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 16, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.357: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.357: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 4, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.417: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 8, srcTexId 2, textureWidth 256, textureHeight 256
06-14 02:02:55.447: E/GLUtils(2290): GL ERROR - after At the end of blitTileFromQueue()() glError (0x501)
06-14 02:02:55.457: E/TransferQueue(2290): blitTileFromQueue ERROR: fboId 1, destTexId 12, srcTexId 2, textureWidth 256, textureHeight 256
Cùng một vấn đề ở đây. –
Đây không phải là một câu trả lời dứt khoát, nhưng đây là một số điều đã làm cho 'WebView' s trở thành màu đen trong dự án của riêng tôi (không phải PhoneGap): Đặt 'layout_width' và/hoặc' layout_height' thành 'wrap_content' (hoặc không đặt chúng ở tất cả, nếu tạo WebView theo chương trình), không bật Javascript khi trang sử dụng nó và không đặt mã hóa nội dung cho tài liệu HTML (hoặc dưới dạng tiêu đề hoặc trong thẻ 'meta'). Người cuối cùng có lẽ là nguyên nhân có khả năng nhất, nhưng không nhìn vào mã của bạn, thật khó để biết chính xác vấn đề là gì. –
@david Brown i biến android: hardwareĐược gắn thành "false" trong AndroidManifest.xml để giải quyết vấn đề, nhưng không thể tận hưởng các tính năng Tăng tốc phần cứng (i sử dụng android studio bây giờ và genymotion, có cùng vấn đề.) – hkguile