Deen
Deen

Reputation: 621

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

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

Upvotes: 2

Views: 11918

Answers (1)

user3255670
user3255670

Reputation:

@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

Upvotes: 0

Related Questions