Java教程

【老卫搬砖】034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频

本文主要是介绍【老卫搬砖】034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

今天啊打开这个DevEco Studio的话,已经提示有3.1Beta1版本的一个更新啊。然后看一下它的一些特性。本文也演示了如何在本地模拟器里面运行HarmonyOS版短视频。

https://img4.sycdn.imooc.com/63fadad80001206a04510260.jpg

主要特性

新特性包括:

  • Added support for Windows 11 64-bit and macOS 13.x OSs, as well as the M1 chip for Mac.

  • Added support for redirection from JS/ArkTS to C/C++ code in the editor.

  • Added the device-cloud integrated development feature.

  • Added support for importing Sketch source files to generate low-code pages and for using custom components in low-code development.

  • Added the HarmonyOS 3.1 X86-based phone emulator.

  • Added the release-type application stack parsing feature.

  • Added support for C/C++ time travel debugging (also known as reverse debugging).

增强特性:

  • Enhanced the low-code development experience by adding six ArkTS components (select, refresh, toggle, textpicker, datepicker, and timepicker) .

  • Enhanced the ArkTS/TS editing experience by adding programming language specification check, code refactoring, and intelligent code completion.

  • Enhanced the C/C++ editing experience by adding function reconstruction/extraction and quick fix of unused function parameters.

  • Updated the SDK to API version 7 for lite wearable application development.

HarmonyOS SDK 更新内容:

Components to install:

- EmulatorX86 3.1.0.100

- Toolchains 3.2.2.2

- Previewer 3.2.2.2

- Toolchains 3.2.2.6

- Previewer 3.2.2.6

- ArkTS 3.2.2.6

- JS 3.2.2.6

OpenHarmony SDK 更新内容:

  • API Version 9

  • ArkTS  3.2.10.6  44.36 MB

  • JS  3.2.10.6  13.92 MB

  • Previewer  3.2.10.6  146.41 MB

  • Toolchains  3.2.10.6  14.88 MB

本地模拟器

其实我比较关注的是本地模拟器。之前的本地模拟器只支持到API 6(HarmonyOS 2)。

https://img2.sycdn.imooc.com/63fadad900012b7e07670308.jpg

而本次更新是可以支持API 9的。

https://img2.sycdn.imooc.com/63fadad90001d84606600359.jpg

同时,新版的模拟器里面也支持更多的设置,比如:摄像头、CPU个数、内存等等。

https://img2.sycdn.imooc.com/63fadad900011a2706270598.jpg

本地模拟器运行应用

以下是一个本地模拟器运行“仿抖音”的短视频应用。

https://img2.sycdn.imooc.com/63fadada0001e88606850516.jpg

完整演示效果可以见B站视频:https://www.bilibili.com/video/BV1ms4y1Z7jj/

源码

更多示例源码、HarmonyOS学习资料可见

  1. 《跟老卫学HarmonyOS开发》 开源免费教程,https://github.com/waylau/harmonyos-tutorial

  2. 《鸿蒙HarmonyOS手机应用开发实战》(清华大学出版社)

  3. 《鸿蒙HarmonyOS应用开发从入门到精通战》(北京大学出版社)


这篇关于【老卫搬砖】034期:HarmonyOS 3.1 Beta 1初体验,我在本地模拟器里面刷短视频的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!