在鸿蒙IDE中导入一个项目报错ERROR: Check whether ‘hwsdk.dir‘ is configured in the local.properties file or whethe

    科技2022-07-12  161

    如何导入一个项目: 选择要导入的项目

    1.错误打印台: ERROR: Check whether ‘hwsdk.dir’ is configured in the local.properties file or whether ‘OHOS_SDK_HOME’ is configured in the environment variables. 2.解决 (1)新建一个 local.properties文件 (2)在local.properties中写入sdk的路径 hwsdk.dir=C:\Users\Administrator\AppData\Local\Huawei\Sdk nodejs.dir=F:\node-js\ 这两个值在哪里找? 点击右侧的Gradle,并且点击刷新

    Processed: 0.010, SQL: 8