![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
鸿蒙DevEcoStudio报错
鸿蒙DevEcoStudio报错
舒小羽
不知名程序⚪
展开
-
DevEco Studio报错:Unable to identify the device type. Error while Deploying HAP
报错:Unable to identify the device type.Error while Deploying HAP原因:工程是鸿蒙系统,我连接调试的设备是安卓系统,当然不行了。。。原创 2021-08-07 22:51:43 · 574 阅读 · 0 评论 -
鸿蒙EevEcoStudio报错:The target or releaseType field in the config.json file does not match the device.
鸿蒙EevEcoStudio报错:The target or releaseType field in the config.json file does not match the device.其实是版本问题把config.json里"apiVersion"下的"releaseType": "Beta1"删去就好了这个问题跟下面这个问题也有一定的关联详情请看本人博客:鸿蒙EevEcoStudio报错:Session ‘com.example.myapplication‘: Error Dep原创 2021-07-07 18:08:30 · 2200 阅读 · 0 评论 -
DevEco Studio更新后报错:Gradle sync failed: Cannot find JAR ‘jaxb-impl-2.3.2.jar‘ required by module...
我更新了一下DevEco Studio,然后就报错了Gradle sync failed: Cannot find JAR ‘jaxb-impl-2.3.2.jar’ required by module…然后我试了一下卸载重装,不行。。。又以为是没有jaxb-impl-2.3.2.jar这个包,拷了个包想放进去,结果拒绝放问(其实里面也是有这个包的)然后经过大佬提醒setting–>build–>build tools–>gradle,选择2.2发现这个301不是当前原创 2021-07-06 18:00:03 · 711 阅读 · 0 评论 -
鸿蒙出现Cannot resolve symbol ‘Database‘、Cannot resolve symbol ‘Entity‘错误
当在鸿蒙中创建数据库或者数据表的时候,出现以下错误:Cannot resolve symbol ‘Database’Cannot resolve symbol ‘Entity’是因为没有在build.gradle中添加配置(如果使用注解处理器的模块为“com.huawei.ohos.hap”模块,则需要在模块的“build.gradle”文件的“ohos”节点中添加以下配置) compileOptions { annotationEnabled true }...原创 2021-07-05 12:03:09 · 1606 阅读 · 0 评论 -
DevEco Studio报错:A problem occurred configuring project ‘:entry‘.
报错:A problem occurred configuring project ‘:entry’.Unable to download the HarmonyOS SDK. Install toolchains:2.1.1.18 fail!A problem occurred configuring project ':entry'.> Unable to download the HarmonyOS SDK. Install toolchains:2.1.1.18 fail!* Try原创 2021-04-17 19:48:53 · 2848 阅读 · 1 评论 -
鸿蒙Debug报错:Could not connect to remote process. Aborting debug session.
Could not connect to remote process. Aborting debug session.Warning: debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipsehttps://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_emulator-00000原创 2021-04-09 15:43:18 · 3205 阅读 · 2 评论 -
鸿蒙EevEcoStudio报错:预览器无法使用,显示Prepare previewer Reource failed
EevEco Studio预览器无法使用,显示Prepare previewer Reource failed.Open the “Run” window to view details.我还没有找到解决办法,但是我重新sync now了一下项目就可以了。。。希望如果有人知道是怎么回事,可以评论区回复我一下~下面是一些相关资料https://developer.huawei.com/consumer/cn/forum/topic/0202363427916790029?fid=26(进入后,搜索预览原创 2021-04-06 18:03:27 · 6752 阅读 · 1 评论 -
鸿蒙EevEcoStudio报错:Session ‘com.example.myapplication‘: Error Deploying HAP
今天一早运行鸿蒙项目,发现运行不了并报错:Session 'com.example.myapplication': Error Deploying HAP解决方案:其实这个是因为版本问题,升级了API今天API变成5了这个是以前的图,可以看到API是4只要把config.json里的releaseType删掉就可以了运行了...原创 2021-03-31 18:00:20 · 1590 阅读 · 2 评论