hbuilderx本地打包android
2023-04-18 12:45:15 时间
hbuilderx使用android studio打包
hbuilder中使用本地打包生成android资源如下
再hbuilderx的打包指南中,下载sdk包,解压如下 https://nativesupport.dcloud.net.cn/AppDocs/download/android
构建空的android项目构建如下文件结构,apps下面放hbuilder生成的资源文件,和sdk/assets中的data文件
修改dcloud_control中的appid为hbuilder生成的www文件夹上层id
拷贝sdk/lib中的文件到lib下面
再androidmanifest.xml中添加activity
<activity
android:name="io.dcloud.PandoraEntry"
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
android:label="@string/app_name"
android:launchMode="singleTask"
android:hardwareAccelerated="true"
android:theme="@style/TranslucentTheme"
android:screenOrientation="user"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="io.dcloud.PandoraEntryActivity"
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard"
android:hardwareAccelerated="true"
android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"
android:screenOrientation="user"
android:theme="@style/DCloudTheme"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<category
android:name="android.intent.category.DEFAULT" />
<category
android:name="android.intent.category.BROWSABLE" />
<action
android:name="android.intent.action.VIEW" />
<data
android:scheme="h56131bcf" />
</intent-filter>
</activity>
运行错误
build.gradle中添加maven依赖项:https://mvnrepository.com 找到缺少的依赖文件,拷贝到dependencies下即可
编译问题
android studio修改gradle版本,https://services.gradle.org/distributions
gradle插件的版本不能修改,必须和android版本一致
相关文章
- 从阿里云原生实战峰会,看数字经济时代下的云原生
- SD-WAN的现在和未来
- 5G消息试商用在即,移动拟采购技术支撑服务
- 未来已来,运营商如何驱动区块链应用创新提速?
- 广州:到2023年将建成5G基站超8万座
- 边缘计算在智能制造趋势下的应用场景探索
- 华为联合医疗产业伙伴推进5G智慧医疗集成合作
- 从NIST 网络安全框架看企业SaaS应用安全合规
- G行云计算之全栈云应用上云篇
- 中国IPv6高速公路全面建成 活跃用户已达5.51亿
- 放榜!瑞数信息斩获“2021年网络安全优秀创新成果大赛”大奖
- 网络不卡顿,这四个要素很重要
- 5G消息先别忙着想“吃肉”
- 创新赋能,筑基未来 ——“2021中国IPv6创新发展大会”在京召开
- 5G赋能千行百业,构建未来能源全新蓝图
- 闻库:完善IPv6标准体系 开展重点标准的制定
- 这或许才是5G的正确打开方式
- 想要取代微信?三大运营商接连宣布,腾讯迎来新对手
- 三大运营商“5G消息”即将商用,对短信和微信将会造成怎样的冲击
- 我们的5G领域大爆发?多个地区积极布局,未来发展潜力值得关注