我正在使用Android Studio为ODROID XU4板开发项目。由于项目的性质,我正在使用Android Studio制作本地应用程序,以便使用一些板的硬件功能,如Ethernet、GPIO等,并且没有开发此应用程序的意图适用于任何其他平台。
现在的问题是客户想要一个漂亮的Ionic界面。我已经测试了大多数我在Google、Ionic论坛、Stack Overflow和许多其他网站中找到的方法,但都没有成功。
我最接近的方法是创建一个Ionic应用程序,添加Android平台并将其导入到Android Studio中。
我的第一个问题是: 1- 这是正确的方法吗?
我的工作流程是:
现在的问题是客户想要一个漂亮的Ionic界面。我已经测试了大多数我在Google、Ionic论坛、Stack Overflow和许多其他网站中找到的方法,但都没有成功。
我最接近的方法是创建一个Ionic应用程序,添加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文件放在哪里,或者如何继续进行。
谢谢。