60750

Error:(1, 0) Plugin with id 'com.android.application' not found - no build.gradle file

Question:

i have imported an Android Studio project, into Android Studio yet the error appears:

<a href="https://i.stack.imgur.com/7v2bF.png" rel="nofollow">First Screenshot</a>

Error:(1, 0) Plugin with id 'com.android.application' not found.

It appears on import that the Build.gradle file for the project and the settings.gradle file were not created

<a href="https://i.stack.imgur.com/wtKjS.png" rel="nofollow">Second Screenshot</a>

this is log file :

2017-01-05 15:07:25,745 [ 381987] INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle for project 'app' failed: Plugin with id 'com.android.application' not found. Consult IDE log for more details (Help | Show Log) 2017-01-05 15:07:25,755 [ 381997] WARN - roid.tools.ndk.GradleWorkspace - NDK support for project 'app' is disabled because the project doesn't contain any valid native configurations. 2017-01-05 15:07:25,795 [ 382037] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s. 2017-01-05 15:07:25,797 [ 382039] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s. 2017-01-05 15:07:25,798 [ 382040] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s. 2017-01-05 15:07:25,799 [ 382041] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.

Answer1:

Create new file called build.gradle in the folder that contains your app folder. Paste the following content into it:

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' } } allprojects { repositories { jcenter() } }

So the structure would be:

Project Name - app - src - build - build.gradle - build - gradle - build.gradle (add this file)

Recommend

  • Row and column sums in R
  • Error 500: Command not handled exception on ALL XPages
  • using boost string algorithm with MFC CString to check for the end of a string
  • TFS Build notification options not populating build definitions
  • How to get Xlib code work in eclipse for C++ ubuntu
  • Deploying Tizen app to Gear S2: Non trusted certificate is used
  • gulp: passing dependent task return stream as parameter
  • How to set the date format of dd-MMM-yy in DataGridView at design time in vb.net?
  • readyRead() signal of QextSerialPort (QIODevice) is not being called fast enough
  • What's wrong when I try to install ADT on Eclipse?
  • Combinatios in List of LIsts Prolog
  • Run/Debug Maven JavaFX 2 in Netbeans
  • Where and How To Define An Application Property? - JHIpster
  • os.system not working, but typing the same thing into the command prompt works
  • How to attach php documentation in eclipse
  • Google Cloud Builder - Gradle
  • Illegal reflective access operation
  • java.lang.IndexOutOfBoundsException occuring on ArrayList
  • New Firebase failed: First argument must be a valid firebase URL and the path can't contain “.”
  • JSON encode and decode on PHP
  • Building Qt project for C++11 standard
  • aapt.exe'' finished with non-zero exit value 1
  • OSX - always hide certain files
  • Android Studio 1.3 RC3. Google Play services out of date. Requires 7571000 but found 6774470
  • Debugging VB6 Code From Visual Studio 2010
  • Problems installing Yesod for Haskell
  • Unable to install Git-core+svn by MacPorts
  • Stop Bash Script if Hive Fails
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • How to rebase a series of branches?
  • ilmerge with a PFX file
  • Update CALayer sublayers immediately
  • req.body is undefined - nodejs
  • Java applet as stand-alone Windows application?
  • Symfony2: How to get request parameter
  • Akka Routing: Reply's send to router ends up as dead letters
  • Is there a mandatory requirement to switch app.yaml?
  • Error creating VM instance in Google Compute Engine
  • How can I remove ASP.NET Designer.cs files?
  • git trying to push non-existent file … after clearing cache