Open KnightAndroid opened 4 months ago
忙着做公司项目去了,如果有需要参考我五一假期完善相关内容
忙着做公司项目去了,如果有需要参考我五一假期完善相关内容
好的,非常感谢
忙着做公司项目去了,如果有需要参考我五一假期完善相关内容
好的,非常感谢
你好,可以麻烦尽快完善组件化项目结构吗?
不好意思,五一家里事情多没搞,我这几天把组件化夸组件调用的内容补充上去,具体工具类封装之类的可以参考我另一个HarmonyOpenEye的项目里面内容
不好意思,五一家里事情多没搞,我这几天把组件化夸组件调用的内容补充上去,具体工具类封装之类的可以参考我另一个HarmonyOpenEye的项目里面内容
好的,这几天等你完善 OK
基础通信功能提交了
你好,我想问一下你编辑器是用DvEco Studio 4.0 Release 版本吗?
你好,我想问一下你编辑器是用DvEco Studio 4.0 Release 版本吗?
是的,这是我的编辑器信息:DevEco Studio NEXT Developer Preview1 Build Version: 4.1.3.500, built on January 20, 2024 Build #DS-223.8617.56.36.4130500 Runtime version: 17.0.6+10-b829.5 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.1.2 GC: G1 Young Generation, G1 Old Generation Memory: 1024M Cores: 8 Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.tabnine.TabNine (1.84.0) net.vektah.codeglance2 (1.5.5) com.huawei.internal (0.0.0.1-SNAPSHOT) com.alibabacloud.intellij.cosy (1.2.11) cn.yiiguxing.plugin.translate (3.5.8)
DevEco Studio NEXT Developer Preview1 这个编辑器在哪里下载呢我在官网找不到
你有HarmonyNext的开发者权限了么?基于API 11的,这个是在官网的套件商城下载的,下载地址如下:https://developer.huawei.com/consumer/cn/deveco-developer-suite/enabling/kit?currentPage=1&pageSize=100
你好,我在DevEco Studio 3.1 api 9环境下 按照你项目结构开发,报以下错误: ERROR: The plugin referenced in the hvigorfile does not match moduleType in the module.json5/config.json file. This may occur when the build-profile.json5 file is directly copied from a module, or when the hvigorfile has different task types registered, for example, hapTasks for a HAR module. Detail: Make sure the module type set in build-profile.json5 is consistent with the settings of hvigorfile. at D:\DevEcostudioProjects\HarmonyWeiHuaRiskApp\common\hvigorfile
API 9我没测试过,看你的错误大概是hvigor插件配置common模块的时候har导致,建议都设置成hsp模块
上面已经解决,现在报下面这个错:
import { HashMap } from '@kit.ArkTS';
common 公用组件这句话报错,如下:Cannot find module '@kit.ArkTS' or its corresponding type declarations.
能帮忙看看什么问题么?好像是导包找不到
据说api10才支持从HarmonyOS NEXT Developer Preview 1版本开始引入Kit概念。SDK对同一个Kit下的接口模块进行了封装,开发者在示例代码中可通过导入Kit的方式来使用Kit所包含的接口能力。其中,Kit封装的接口模块可查看SDK目录下Kit子目录中各Kit的定义。你知道怎么改么,我现在是api9
你好,问题已经解决,主要是Api10和Api9的写法不一样
你好,问题已经解决,主要是Api10和Api9的写法不一样
解决了就好,白天上班比较忙,github看的少
你好,我想问你一个问题,布局中的组件宽高百分比不能抽写在float文件中,你知道怎么弄将宽高百分比都抽写到一个文件中进行引用?
这种建议写成consant变量,官方的demo也是写成constant变量的,因为用百分比的基本也就是100%这个居多,我们项目也是这样做的
你好,不知道你发现没有用Hliog打印json转成对象的string 会失败,有什么方法处理吗?
let sd:string = JsonUtils.stringify(config.params);
LogUtils.debug('网络请求Request Params:', \n${JsonUtils.stringify(config.params)}
);
断点发现sd是已经赋值了的:{ "mobile": "23655", "type": "memberLogin" }
然后 LogUtils.debug('网络请求Request Params:', \n${JsonUtils.stringify(config.params)}
);到这一句就打印不出来
你试试打印data呢?post请求的值是data
json转换是ok的,就是打印不出来,我断点的时候已经转换成功了,走到LogUtils打印不出来
json转换是ok的,就是打印不出来,我断点的时候已经转换成功了,走到LogUtils打印不出来
好的,我晚点试试
你好,我有一个问题需要向你请教: 我现在需要传一个入参类型是这样的: { url : "/common/send_sms.jhtml", params:{ "key1":"value1", "key2":"value2"} })
url这个我是知道定义类型为string params 就不知道定义什么类型 ,现在报错 不知道你是否知道呢?目前开发环境在API11
请问库主,项目是否搭建完整了呢?