- 错误如下
19:32:47.224 同步资源失败,未得到同步资源的授权,请停止运行后重新运行,并注意手机上的授权提示 19:32:47.224 如果此时手机没有任何反应,请检查自定义基座是否正确;如果是离线制作的自定义基座包,请检查离线包制作是否正确!
- 删除已安装基座,重启手机
- 在SDK目录中复制
debug-server-release.aar
到工程目录 - 检测一下www目录结构是否正确
- 引入腾讯播放器SDK时报以下错误:
Duplicate class com.tencent.liteav.txcvodplayer.TXCVodVideoView$10 found in modules jetified-LiteAVSDK_Player-12.0.0.14689-runtime (com.tencent.liteav:LiteAVSDK_Player:12.0.0.14689) and jetified-weex_livepusher-release-runtime (weex_livepusher-release.aar)
uniapp内置的组件weex_livepusher-release.aar
已调用了com.tencent.liteav:LiteAVSDK_Player:12.0.0.14689
查看版本地址:https://repo.maven.apache.org/maven2/com/tencent/liteav/LiteAVSDK_Player
- 错误如下
11:22:29.149 [Vue warn]: Failed to resolve component: myText If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
方法1:版本切换成vue2才行 方法2:在项目根目录创建vite.config.js ```js import {
defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
plugins: [
uni({
vueOptions: {
template: {
compilerOptions: {
// 将所有my-开头的标签作为自定义元素处理
isCustomElement: tag => tag.startsWith("my-")
}
}
}
})
]
})
``
4. 打包升级提示
本_wgt文件由HBuilderX_ x.x.x版本生成,`
> https://ask.dcloud.net.cn/article/35627
uView
只支持Vue2
,uni app x
只能开发APP不支持小程序。 > Vue3 兼容uView的替代方案 https://ext.dcloud.net.cn/plugin?id=12287