a***@live.cn
a***@live.cn
  • 发布:2022-11-24 14:25
  • 更新:2022-11-24 14:25
  • 阅读:340

style/DCloudTheme not found

分类:uni-app

Android studio中插件编译时,报如下错误
UniPlugin-Hello-AS\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:83: AAPT: error: resource style/DCloudTheme (aka com.android.UniPlugin:style/DCloudTheme) not found

APP build.gradle配置
compileSdkVersion 33
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.android.UniPlugin"
minSdkVersion 21
targetSdkVersion 33

插件中版本配置一致

APP的AndroidManfest.xml中配置如下:
<activity
android:name="io.dcloud.PandoraEntryActivity"
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize"
android:hardwareAccelerated="true"
android:permission="com.miui.security-center.permission.AppPermissionsEditor"
android:screenOrientation="user"
android:theme="@style/DCloudTheme"
android:windowSoftInputMode="adjustResize"
android:exported="true">

2022-11-24 14:25 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复