热门问题
待回答
最新问题
热门回答
  • 1

    回答

    869

    浏览
    HarmonyOS SVGA格式图片显示问题

    如何显示svga格式的动图?Image组件好像不支持。

    HarmonyOS
      FengTianYa 进行了回答 • 2024-12-25 11:57:07
  • 1

    回答

    1004

    浏览
    HarmonyOS react-native-image-colors调用getColors失败

    reactnativeimagecolors调用getColors返回[TypeError:Cannotreadproperty‘getColors’ofnull]

    HarmonyOS
      zbw_apple 进行了回答 • 2024-12-25 11:57:00
  • 1

    回答

    1637

    浏览
    HarmonyOS flutter_flutter开发环境搭建问题

    依据HarmonyOS化指导文档:https:gitee.comopenharmonysigfluttersamplestreemasterohosdocs搭建HarmonyOSFlutter开发环境,检查HarmonyOS配置时(flutterdoctorv),未检查到HarmonyOSSdk,不知是哪里出了问题?报错如下:[X]HarmonyOStoolchaindevelopforHarmonyOSdevicesXHarmonyOSSdknotfound;pleasedothat,first:downloadfromhttps:developer.harmonyos.comcndevelopdevecostudiodownloadcli;second:followthisdocument:http...

    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-25 11:56:55
  • 1

    回答

    1347

    浏览
    HarmonyOS 三方库ImageKnife接口调用

    用ImageKnifeComponent加载完图片了,想拿到缓存资源用于分享、保存到相册等功能,用getCacheImage是否可行,如果可行要怎么调用到这个接口?ImageKnifeComponent({imageKnifeOption:{loadSrc:item.url,主图placeholderSrc:$r('app.media.placeholder'),占位图errorholderSrc:$r('app.media.errorholder'),错误图isCacheable:true,mainScaleType:ScaleType.FITCENTER,}}).width('100%').padding({left:5,right:5})

    HarmonyOS
      zbw_apple 进行了回答 • 2024-12-25 11:56:27
  • 1

    回答

    897

    浏览
    HarmonyOS 是否有办法实现SVGA动效播放

    项目中有不少动效是svga格式,目前是通过开源的SVGAPlayer(https:github.comsvga)实现的,HarmonyOS中如何实现?

    HarmonyOS
      aquaa 进行了回答 • 2024-12-25 11:56:23
  • 1

    回答

    1484

    浏览
    HarmonyOS react native如何向B端(RN前端)发送消息

    RN与原生端进行交互是通过桥接,原生端向RN端发送数据如何操作?

    HarmonyOS
      superinsect 进行了回答 • 2024-12-25 11:56:07
  • 1

    回答

    837

    浏览
    HarmonyOS FlutterWebview插件设置WebView UA不生效

    设置UA不生效,调用设置UserAgent方法WebViewController的setUserAgent()不生效,同时获取WebViewController.getUserAgent()也无效。

    HarmonyOS
      shlp 进行了回答 • 2024-12-25 11:56:00
  • 1

    回答

    1055

    浏览
    HarmonyOS 获取副卡服务商无返回值

    slotId1时,其simState为SIMSTATEREADY,但调用sim.getSimSpnSync(1)无返回值

    HarmonyOS
      FengTianYa 进行了回答 • 2024-12-25 11:56:00
  • 1

    回答

    928

    浏览
  • 1

    回答

    949

    浏览
    HarmonyOS 跳转应用商店

    跳转应用商店首页和应用商店某个app页面

    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-25 11:55:32
  • 1

    回答

    1088

    浏览
    HarmonyOS PlatformView更新后是否有最新Demo?

    flutterflutter更新后,PlatformView类中getView方法返回值从WrappedBuilder变更为DVModel,目前网络中的文档和Demo尚未更新,是否能提供最新的Demo或告知更新后的写法。

    HarmonyOS
      Heiang 进行了回答 • 2024-12-25 11:55:16
  • 1

    回答

    1094

    浏览
    HarmonyOS napi开发是如何引用第三方so库

    为复用c++代码功能,如果在napi开发过程引用第三方提供的c++编译好的SO库,有没有文档可以参考?

    HarmonyOS
      superinsect 进行了回答 • 2024-12-25 11:55:06
  • 1

    回答

    686

    浏览
  • 1

    回答

    972

    浏览
    HarmonyOS 系统的ohos.zlib是否支持解压缩带密码功能

    现在需要在软件开发中对文件进行带密码的压缩或解压缩,给压缩包加上密码。zlib好像不支持该功能,有什么解决方法没?

    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-25 11:55:02
  • 1

    回答

    902

    浏览
    HarmonyOS react-native-device-info使用报错

    这边在HarmonyOS侧通过har包引入方式引入info,便发生了报错,好像是路径问题,但是rn项目中是已经生成了相关文件的。这该如何处理?

    HarmonyOS
      zxjiu 进行了回答 • 2024-12-25 11:55:00
  • 1

    回答

    1644

    浏览
    HarmonyOS 项目使用Migrate Assistant自动迁移完成后,运行flutter项目报错

    使用MigrateAssistant迁移,且工程重新完成同步,并无其他报错提示(迁移成功)。运行Flutter项目报错,报错信息如下:Parseohosmodule.json5error:Exception:Cannotfoundmodule.json5atUsersxxx.pubcachegitflutterpackages0f6bad27408d6d3c7887b9570dd7bad5e12b66cdpackagessharedpreferencessharedpreferencesohosohossrcmainmodule.json5.YouneedtoupdatetheFlutterpluginprojectstructure.Seehttps:gitee.comopenharmonysigfluttersamplestreemasterohosdocs09specificationsupdateflutterpluginstructure.mdExited(1)

    HarmonyOS
      zbw_apple 进行了回答 • 2024-12-25 11:54:51
  • 1

    回答

    1067

    浏览
    HarmonyOS UI测试API问题

    在编写UItest用例时,有个APIDriver.assertComponentExist(),这个方法返回的是void,用途是用于断言当前界面是否存在满足给出的目标属性的控件。但是我需要判断当前界面是否存在某个控件(无论是根据id还是text),这个API似乎不能解决我的需求,它不能给我一些明确的结果确认是否存在,有没有其它API可以判断是否存在某个控件并反馈出结果(布尔值最好)

    HarmonyOS
      Heiang 进行了回答 • 2024-12-25 11:54:37
  • 1

    回答

    927

    浏览
    HarmonyOS 证件扫描自动判断证件正反面

    使用CardRecognition这个控件扫描身份证,不上送身份证正反面,有没有什么方法可以在扫描证件完成后,自行在参数判断当前扫描的身份证为哪个面?

    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-25 11:54:18
  • 1

    回答

    900

    浏览
    HarmonyOS Napi Arraybuffer无法创建
    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-25 11:54:11
  • 1

    回答

    1070

    浏览
    HarmonyOS 使用Webview会闪退

    使用的Webview的版本是reactnativeohtplreactnativewebview13.10.2nc.0.0.12.tgz后续换成rn版本reactnativeohtplreactnativewebview13.10.20.2.3.tgz,依然会闪退。

    HarmonyOS
      put_get 进行了回答 • 2024-12-25 11:54:09
  • 1

    回答

    813

    浏览
    HarmonyOS ndk --with-sysroot参数问题

    ndk交叉编译配置configure配置–withsysroot参数为native目录,还有native目录下sysroot都会提示文件不存在。UsersxxxDesktopworkharmonyharmonysodiumlibsodiummasterdistbuildharmonybuild.sh:line35:withsysrootUsersxxxDesktopworkharmonysdkHarmonyOSNEXTDB1openharmonynative:NosuchfileordirectoryUsersxxxDesktopworkharmonyharmonysodiumlibsodiummasterdistbuildharmonybuild.sh:line35:withsysrootUsersxxxDesktopworkharmonysdkHarmonyOSNEXTDB1openharmonynativesysroot:Nosuchfileordirectory

    HarmonyOS
      FengTianYa 进行了回答 • 2024-12-25 11:53:57
  • 1

    回答

    722

    浏览
    HarmonyOS 如何利用axio向后端发送表单数据

    表单内容是audio类型的字节数组,Java中利用Okhttp的写法是这样的。RequestBodyrequestBodyRequestBody.create(MediaType.parse("audio"),bs);MultipartBody.BuilderbuildernewMultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("samplerate","16000").addFormDataPart("businessline","8").addFormDataPart("format","pcm").addFormDataPart("audiocontent",System.currentTimeMillis()+".wav",requestBody);在HarmonyOS中该怎么写?

    HarmonyOS
      Heiang 进行了回答 • 2024-12-25 11:53:42
  • 1

    回答

    974

    浏览
    HarmonyOS上RN实现tabview类似的demo
    HarmonyOS
      Heiang 进行了回答 • 2024-12-25 11:53:39
  • 1

    回答

    980

    浏览
    HarmonyOS json解析特殊字符

    后台提供的数据里。有{15:“一个字符”,14:“一个字符”}ArkTS里是否有SerializedName

    HarmonyOS
      Heiang 进行了回答 • 2024-12-25 11:52:59
  • 1

    回答

    1241

    浏览
    HarmonyOS CryptoJS Des解密问题

    使用"ohoscryptojs":"^2.0.3"进行解密,这是解密的代码:declareinterfaceKeyOption{value:string,key:string}exportclassCryptoUtil{privatestaticreadonlysecretKey:string"tcxyctxy";privatestaticreadonlyuintArraynewUint8Array([1,2,3,4,5,6,7,8])staticencrypt(params:KeyOption):string{letkey:string(params.keyundefinedparams.key.length0)CryptoUtil.secretKey:params.key;if(params.value.length0){return"";};con...

    HarmonyOS
      shlp 进行了回答 • 2024-12-25 11:52:59
  • 1

    回答

    1200

    浏览
    HarmonyOS 确认RN组件清单依赖适配情况

    现在rn项目依赖运行报错较多,需要确认下项目依赖清单适配情况。

    HarmonyOS
      superinsect 进行了回答 • 2024-12-25 11:52:54
  • 1

    回答

    1069

    浏览
    HarmonyOS 跳转应用市场问题

    应用内跳转到应用市场去下载其他应用的实现方法。

    HarmonyOS
      aquaa 进行了回答 • 2024-12-25 11:52:54
  • 1

    回答

    1118

    浏览
    HarmonyOS ohosTest调用so库失败

    在正常的demo的page中调用,onCreate后可以使下面的导入成功。importtestNapifrom'libtrtcsdktest.so';但是在ohosTest中调用,importtestNapifrom'libtrtcsdktest.so';显示ErrorinassertTrtcSdk,isnotcallableatanonymous(trtcsdktestsrcohosTestetstestTrtcSdk.test.ets:36:69)atanonymous(ohmodules.ohpmohos+hypium1.0.18ohmodulesohoshypiumsrcmainservice.js:38:19)atgetFuncWithArgsZero(ohmodules.ohpmohos+hypium1.0.1...

    HarmonyOS
      aquaa 进行了回答 • 2024-12-25 11:52:47
  • 1

    回答

    1174

    浏览
    HarmonyOS 关于JSON转Class之后方法丢失问题

    JSON和Class的互转,在网络通讯中是非常常见的,而ArkTS这种语言在转class之后出现了方法找不到的问题。

    HarmonyOS
      Heiang 进行了回答 • 2024-12-25 11:52:18
  • 1

    回答

    914

    浏览
    HarmonyOS mqtt功能调试不成功
    HarmonyOS
      put_get 进行了回答 • 2024-12-25 11:52:17
3.8w问题, 4.1w人参与
94%的提问收到了回答

优秀答主

  • 回答了3个问题,0个赞同
  • 回答了3个问题,0个赞同
  • 回答了3个问题,1个赞同
  • 回答了2个问题,0个赞同
  • 回答了2个问题,1个赞同
  • 写回答 帮助更多的人