• 请不要在回答技术问题时复制粘贴 AI 生成的内容
csulyb
V2EX  ›  程序员

鸿蒙的 helloworld 第一天就被劝退

  •  
  •   csulyb · Oct 13, 2024 · 5714 views
    This topic created in 751 days ago, the information mentioned may be changed or developed.

    API 9 中, 第一行提示找不到 kit 包

    import {batteryInfo} from '@kit.BasicServicesKit'; import hilog from '@ohos.hilog'; 这是因为 api 版本不对吗?

    11 replies  •  2024-10-19 19:28:39 +08:00
    justtokankan
    justtokankan
    Oct 13, 2024 via iPhone
    1
    api 都到 12 了,小伙子
    csulyb
    csulyb
    OP
    Oct 13, 2024
    2
    @justtokankan 我下载的是最新版的 devEco studio 里面最高就是 API 9 , 你可以用上 12 吗
    justtokankan
    justtokankan
    Oct 13, 2024 via iPhone
    3
    @csulyb #2 估计要申请,公司级别的一般已经到 12 了
    nyxsonsleep
    nyxsonsleep
    Oct 13, 2024
    4
    @csulyb #2 https://developer.huawei.com/consumer/cn/download/ 5.0.3.900 当前最新版,每月都有更新。
    tabc2tgacd
    tabc2tgacd
    Oct 14, 2024
    5
    @justtokankan 这玩意还要申请才给用????
    yuebuzai
    yuebuzai
    Oct 14, 2024
    6
    鸿蒙开发还是很有意思的
    最起码文档是中文,而且很全面
    SoyaDokio
    SoyaDokio
    Oct 14, 2024
    7
    @nyxsonsleep #4 没想到访问这个域名还必须登录...
    debuggeeker
    debuggeeker
    Oct 14, 2024
    8
    下载一个官方的 demo 试试
    knightgao2
    knightgao2
    Oct 14, 2024
    9
    还要签保密协议才给看的
    From313
    From313
    Oct 15, 2024
    10
    用模拟器还要申请
    Rrrrrr
    Rrrrrr
    Oct 19, 2024
    11
    看这评论有点离谱,本来还想跑个 hello world
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4248 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:07 · PVG 09:07 · LAX 17:07 · JFK 20:07
    ♥ Do have faith in what you're doing.