【发布时间】:2016-01-09 05:02:37
【问题描述】:
我正在使用 android studio 为 ODROID XU4 板开发一个项目。由于项目的性质,我正在使用 android studio 制作一个原生应用程序,以便使用板的一些 Harware 功能作为以太网、GPIO ......并且因为没有打算为任何其他开发这个平台。
现在的问题是客户想要一个漂亮的离子界面。 我一直在测试我在谷歌、离子论坛、堆栈溢出和许多其他网站上找到的大多数方法,但没有成功。
我最接近的是创建一个离子应用程序,添加 android 平台并将其导入到 android studio。
我的第一个问题是: 1- 这是正确的方法吗?
我的工作流程是:
ionic start myapp
ionic platform add android
ionic build android
然后我用 android studio 导入 myapp 文件夹。 首先我得到一个 android studio 错误:
19:40:40 Migrate Project to Gradle?
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.
More Information about migrating to Gradle
Don't show this message again.
19:40:41 Update Property Files
The structure of following Android modules was changed:
android
CordovaLib
Would you like to update related project.properties files?
Only once
Always for these modules
Never for these modules
19:40:44 Update Property Files
The structure of following Android modules was changed:
android
Would you like to update related project.properties files?
Only once
Always for these modules
Never for these modules
19:40:45 IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
19:48:09 Error Report: Submitted
现在是时候将项目迁移到 gradle:
这里是主要问题,我不知道将新的 gradle 文件放在哪里或如何继续。
谢谢。
【问题讨论】:
-
@Andre Kreienbring 我只知道如何反其道而行之——即从 ionic 移植到 android studio。请看我对以下问题的回答:stackoverflow.com/questions/32697677/…
标签: android cordova gradle ionic native