1

I'm trying to add GreenDroid to an existing project, but I can't figure it out.

The instructions weren't very helpful.

I was able to download it by using: VCS>Checkout from Version Control>Git, but Android Studio added it as a standalone project not a library I can implement into my existing app.

ngx311
  • 487
  • 2
  • 7
  • 22
  • have look this https://cyrilmottier.com/2010/05/14/introduction-to-the-greendroid-library/ – Hemant Parmar Nov 07 '17 at 04:47
  • @hemant-parmar I'm stuck on step 2 of that link you gave me. I'm on a Windows machine. How do I `Go to the scripts/ folder of the GreenDroid folder. Run the script named “greendroid.py” (make sure you can run it - chmod +x greendroid.py) to apply the library to your project : ./greendroid.py apply ` Is this something I can do through Android Studio? – ngx311 Nov 07 '17 at 05:29

1 Answers1

1

Go to the scripts/ folder of the GreenDroid folder. Run the script named “greendroid.py” (make sure you can run it - chmod +x greendroid.py) to apply the library to your project : ./greendroid.py apply <project_directory>

You should be able to try on Windows it with:

  • git bash
  • python in your $PATH

Then you can see of the same project, when opened in Android Studio, has the right library.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for the answer VonC. But greendroid.py has been removed from the library. The GitHub page is saying to use the ADT Plugin for Eclipse, but it says nothing about how to install the library using Android Studio. Cyril Mottier, the creator of GreenDroid stopped maintaining the project. So, does this mean I'm just shit out of luck? – ngx311 Nov 07 '17 at 06:19
  • 1
    @ngx311 Yes, the project seems obsolete and says so in its README. – VonC Nov 07 '17 at 07:58