bboyairwreck / PieMessage

This is project allows Android clients to communicate using iMessage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Failed

PocketCoder opened this issue · comments

When I run the command
grade installDebug

I get the following error:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/JakeWilliams/Downloads/PieMessage-master/PieMessage-Android/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.10 is required. Current version is 2.5. If using the gradle wrapper, try editing the distributionUrl in /Users/JakeWilliams/Downloads/PieMessage-master/PieMessage-Android/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.717 secs

I've tried updating grade and have changed the distrubutionURL but the error still appears.

did you ever find a solution to this?

MacBook:PieMessage-Android tanaysood$ grade installDebug
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "ce1c366ca16d7c58c98fcda8cec0729ed040149d"

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/tanaysood/PieMessage/PieMessage-Android/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Could not create plugin of type 'AppPlugin'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

I am getting a very similar message as well. Not sure which Plugin it is talking about which is outdated.

same here

Installing Android SDK/Studio (+ getting the right SDK & tools) and clicking the "fix" suggestion at the bottom solved this issue for me. I think setting the environment variable might also work: export ANDROID_DAILY_OVERRIDE=ce1c366ca16d7c58c98fcda8cec0729ed040149d

For anyone still running into this issue today, open PieMessage-Android as a project in Android Studio. It will have hyperlinks in the errors to download the necessary plug-ins. You can then build in Android Studio and save APK to disk, or plug in your device and build via command line.