This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system

假如想象 提交于 2019-12-10 22:24:48

问题


I am new to the android studio

I have importing PhoneGap project into the android studio.

Here I am getting this error

This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.

and I don't know how to use android studio

I did following steps.

  1. node.js and PhoneGap and android studio installation
  2. PhoneGap project creation
  3. add the Android platform to PhoneGap project and build android
  4. import the project into the studio (I have imported whole app not only android platform)

after this, I'm getting

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.

How can I solve this? and how to run the project? and how to proceed further in android studio+Phonegap project


回答1:


@Deen,
according to this blog post - Android Builds Now Using Gradle By Default (2015-09-28), Gradle is the default. See UPDATE

However, in the last hour (it's 10:45 pm on 2015-12-04 in El Paso, Texas) I found out this may not be the case.

I have made an inquiry to the Nitobi Forum, PhoneGap Build's "official forum".
See: Is Gradle the default build?

In the meantime you should be able to force gradle with:

<preference name="android-build-tool" value="gradle" />

The documentation confirms as much. See: Configuring->Preferences->Android Only

NOTE: PhoneGap Build is a cloud service to build Apps. It does not run in an IDE. PhoneGap Build is self-contained. See the Stack-overflow tag for more.

UPDATE: 2015-12-05T22:19:32 The response from other Volunteers on Nitobi indicate that PhoneGap removes the "default Gradle" within 24 hours of the announcement.

Best of Luck



来源:https://stackoverflow.com/questions/34093459/this-project-does-not-use-the-gradle-build-system-we-recommend-that-you-migrate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!