Gradle error after git clone

I am new to Git and Android studio. Basically I have a working android studio project which I pushed on my home computer and expected to do a simple pull at work and continue my work.

Unfortunately I am getting this error message and cannot run my project:

3:45:27 PM 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.

The message is suggesting the project does not use gradle, when in fact...this project does use Gradle on my home computer.

-------------Problems Reply------------

First of all I would remove following files/directories from your project-folder:


Then try to import the project again in AndroidStudio. This usually works for me, and to avoid that in the future, adjust the .gitignore file properly.

If the first tip does not help: have you tried downloading a more recent gradle (1.12) locally and point to that directory? (Don't point AndroidStudio to download, but do it yourself first). You are not using a gradle-wrapper are you?

Category:android Views:6 Time:2019-02-03

Related post

  • Gitolite: print message after git clone finished 2011-07-13

    I would like to create a message that pops up whenever someone clones a git repository using gitolite. I want to remind them to clone the hooks repo as well and to activate the contained hooks. How can I do that? --------------Solutions-------------

  • how to detach alternates after git clone --reference? 2010-02-11

    I'm using git clone --reference to reduce network traffic over a slow connection. Now, git-clone's man page points out the dangers of using this and suggests git repack -a to break the link, which I'm doing immediately after the clone. What I'd like

  • After git clone , does not see branch 2010-10-22

    I have the repository on github. It contains master and one branch. When I clone, I obtain only master and do not see my branch. Why is it so? How can I see all branches in the repository? Thanks. --------------Solutions------------- By default, git

  • After "git clone -" how do you add that folder to current directory as 1 single repo? 2010-10-29

    I am trying Git, and so if i do mkdir foo cd foo git clone git:// so my project folder will now have sdk, which is a library or an sdk. How to make sdk part of my project now? That is, just 1 repo instead of git init and h

  • Can't pull or push after git clone - local changes 2011-01-06

    I created a new directory c:\Src, where I've cloned a repository. After cloning I get the following $ git branch * Search $ git branch -a * Search remotes/origin/master remotes/origin/prototype If i then try $ git checkout -b master origin/master it

  • Files showing as modified directly after git clone 2011-02-15

    I'm having an issue with a repository at the moment, and though my git-fu is usually good, I can't seem to solve this issue. When I clone this repository, then cd into the repo, git-status shows several files as changed. Note: I haven't opened the re

  • How to fix windows line endings after git clone 2011-10-21

    I have cloned a repository from github on a Windows 7 box, and made some of changes I would hate to lose. However, all my file have wrong line endings, \n instead of \r\n. How should I fix it? I think I should clone my repo again with correct line en

  • Gitolite git clone error 2011-02-18

    I am trying to setup gitolite on my server (Macos server). I followed the instructions in the INSTALL document found here : I installed the root method. I got everything setup (ssh pubkey authent

  • git clone error,Connection refused while accessing - info/refs 2011-12-05

    i want to clone resource from my git server through http,but i got the following error: git clone http://xxx/ResMonitor.git/ Cloning into ResMonitor... error: Failed connect to xxx:80; Connection refused while accessing http://xxx/ResMonitor.git/info

  • git clone - fatal: remote error: access denied or repository not exported 2012-04-23

    When I try to perform the following command, git clone git://, I get the following error: > git clone git:// Cloning into 'dirA'... fatal: remote error: access denied or repository not exported: /8/nw/

  • Git show, shows all files as changed after fresh clone 2013-02-09

    As the question says, after I do a fresh clone of a repo, a git show, shows a lot of files as changed, but I haven't yet touched any of the files. A git diff gives nothing. I need to make changes and see the changes using a git show, but only my own

  • git-clone and post-checkout hook 2010-01-26

    According to the manual, the post-checkout hook is run after a git checkout (just as expected) but also after a git clone (unless you pass --no-checkout). Very well, now, considering the following: you don't have a local repository before a git clone

  • Errors cloning git project using Cygwin, msysgit Bash shell works 2011-02-04

    I have Cygwin installed on Windows XP and it comes with git v1.7.3.3. I also have SSH access to a git repository hosted on a Linux server. Sometimes, when cloning a large project using Cygwin I get the following error: $ git clone ssh://[email protected]/git

  • Keep stash after git filter-branch --subdirectory-filter 2011-08-12

    I recently split out my repository (residing in bigproj) using git filter-branch --subdirectory-filter deep/in/my/project. Then, I moved .git directory to deep/in/my/project. Now, stash is in a strange state, where the top stash is something like: st

  • Hudson git clone error 2009-07-24

    I have created free-style software project in Hudson. I want to clone a public Git repository: git:// Build fails with error message: Started by user anonymous Checkout:workspace / C:\Documents and Settings\Administrator\.hud

  • Can't git clone Heroku project after reinstalling OS 2012-02-17

    I reinstalled my OS and now when I try to git clone my project it says that the key with a certain fingerprint is not authorized to access the project. Then it says fatal error and the remote end hung up. What do I do about the fingerprint so that I

  • Msys Git Install Path Error on Get Clone in TortoiseGIT 2009-09-06

    I installed Msys Git and TortoiseGIT x64. Whenever I try to use the Get Clone command I am getting the error: "Msys Git Install Path Error". The wierd thing is that I when I set it all up, it worked once and then stopped. Now I have uninstalled and r

  • git-clone memory allocation error 2009-10-19

    I'm trying to run git clone and am receiving the following error: fatal: Out of memory, malloc failed fatal: index-pack died with error code 128 fetch-pack from '[email protected]:git' failed. I was able to successfully do a clone on my local machine, but

  • git clone over https 401 error and not asking for username or password 2011-04-26

    I have a private git repository on Codaset. Normally when I try to clone it over HTTPS on my Windows machine, it asks me for my username and password. When I try to clone it on an Ubuntu server, it never asks me for a username or password and it fail

  • Git clone fatal download error 2011-07-03

    Here's what I'm typing: [email protected]:/home# git clone Here's what I get: Initialized empty Git repository in /home/django-cache-machine/.git/ fatal:

  • Git Error After Fresh Install 2011-07-17

    So I'm trying to run the script from HTML5 Boilerplate and ran into an error. I saw an issue documented here that seemed relevant and from what I could tell the best way to fix it was to upgrade to the latest git. So I grabbed git fr

  • Git clone fails with out of memory error - "fatal: out of memory, malloc failed (tried to allocate 905574791 bytes) / fatal: index-pack failed" 2011-09-30

    I'm attempting to clone a large (1.4GB) Git repository to a 32-bit Debian VM with 384MB of RAM. I'm using Git, and using the SSH protocol to clone ('git clone [email protected]:/my/repo') The clone fails with this message: remote: Counting object

  • PlayN Samples: git clone command throws error: did you run git update-server-info on the server? 2011-12-10

    I'm trying to follow the GettingStarted instructions for PlayN. I get an error when trying to clone the repository: Macintosh: test dev $ git clone Initialized empty Git repository in /home/dev/test/playn-sampl

  • Getting Error in while downloading Git Clone? 2011-12-23

    I am opening the terminal, writting the command as follows git clone url It says as Cloning into and I am getting error error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVE

  • git clone error : fatal: git upload-pack: aborting due to possible repository corruption on the remote side 2012-01-01

    I am having read/write access to a git repo but when I try to git clone I am getting the following error: [email protected]:~/temp$ git clone [email protected]:Corp/app.git Initialized empty Git repository in /home/x/temp/app/.git/ remote: error: Could not read

Copyright (C), All Rights Reserved.

processed in 0.201 (s). 11 q(s)