当前位置:网站首页>How to solve the problems when using TV focusable to package APK in uni app
How to solve the problems when using TV focusable to package APK in uni app
2022-06-13 01:23:00 【Durian is not delicious】
Many little cute reactions use uni-app Framework for the integration tv-focusable Development , Pack it up apk The following error will occur in the case of ,
reportJSException >>>> exception function:createInstanceContext, exception:white screen
cause create instanceContext failed,check js stack ->Uncaught TypeError:
Cannot read property 'CustomEvent' of undefined
This is the question today , Talk about the causes , And Solutions :
Take a look first uni-app Description of official release documents , Pay attention to the red line .
in other words uni-app In Africa h5 End development , Will remove some of the browser's own objects , Among them is CustomEvent Custom events , But this is required for any library that involves custom events api, unfortunately tv-focusable Also used. , therefore uni-app In the process of packaging apk The compilation fails when , So as to report this error .
Having finished the reason for the error report , Next, let's talk about the solution , It's very simple :
1. First , Modify the basic path : manifest.json modify “base”:"./" And then it's packaged into h5, Then make sure you can run the test in the browser , If everything goes well , We can go on to the next step ;
2. Will just generate the h5 The project with hbuilder Again into APP.( If you don't know how to turn , See the link below )
How to integrate h5 Pack it up apk, Please poke here
边栏推荐
- Common skills for quantitative investment - drawing 2: drawing the moving average
- Leetcode-17- letter combination of phone number (medium)
- 切线与切平面
- Five classic articles worth reading (2)
- Stack and queue practice (C language): Demon King's language
- np. Understanding of axis in concatenate
- Common skills for quantitative investment - drawing 3: drawing the golden section line
- FSOs forest simulation optimization model learning notes
- Thread code learning notes
- Study notes on the introduction paper of face recognition deep facial expression recognition: a survey
猜你喜欢
Matrix fast power
【斯坦福计网CS144项目】Lab1: StreamReassembler
Common skills for quantitative investment - drawing 3: drawing the golden section line
Large end storage and small end storage
Work and life
4K sea bottom and water surface fabrication method and ocean bump displacement texture Download
ES6 deconstruction assignment
Summary of various installation methods of Lab View
Realization of flip animation
Jenkins continuous integration operation
随机推荐
Transaction characteristics and isolation levels
Install pycharm process
ES6 deconstruction assignment
Stack stack LIFO
leetcode. 151. flip the words in the string
Leetcode-17- letter combination of phone number (medium)
Matrix fast power
Binary tree traversal - recursive and iterative templates
Status of the thread
数学知识整理:极值&最值,驻点,拉格朗日乘子
Vector|hdu-4841 round table questions
ArrayList underlying source code
Loss calculation in pytorch
Common skills of quantitative investment -- Drawing Part 1: Drawing stock closing price curve and ochl candle chart
Differences among bio, NiO and AIO
MySQL performance optimization
Detailed explanation of Joseph problem
Leetcode-12- integer to Roman numeral (medium)
切线与切平面
Leetcode-16- sum of the nearest three numbers (medium)