无法确定标签<cloudObjectStorage>的类型

问题描述

上下文:cloud ibm com / developer / appservice / create-app

你好, 我首先基于defaultLanguage = ANDROID,navMode = starterkits,starterKit = f52aa8e3-d683-37e5-bae6-79c5e3140e9f

创建了一个应用

下一步,我创建了一个服务:云对象存储

然后我下载了zip。

我研究了zip中的文本文件。 我在res / values / credentials.xml中找到了

<?xml version="1.0"?>
<resources>
  <cloudObjectStorage>

My local Android Studio 4.0.1 refused to compile it.
Can't determine type for tag <cloudObjectStorage>

I guess the issue is that the IBM Android Template was defined for version 3.5.3 of the Studio. 
Any idea how to make the IBM code compatible with version 4.

解决方法

这就是我所做的并按预期工作

  1. 使用ibmcloud dev交互式插件创建了Android应用
  2. 在创建应用程序时添加了Cloud Object Storage服务
  3. 将项目导入到Android Studio 4.0.1
  4. 将gradle插件更新为最新版本(6.1.1)

gradle构建成功,没有任何错误enter image description here

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...