Skip to content

Instantly share code, notes, and snippets.

@nampdn
Forked from ylno/010_fix_gradle.sh
Created May 8, 2018 09:29
Show Gist options
  • Save nampdn/9b6bd67e9dfecbdaa993c01b0b1d6fb2 to your computer and use it in GitHub Desktop.
Save nampdn/9b6bd67e9dfecbdaa993c01b0b1d6fb2 to your computer and use it in GitHub Desktop.
#!/bin/sh
if grep -q "com.android.support:support-v4:26.0.0" platforms/android/build.gradle; then
echo "build.gradle already fixed"
else
echo "configurations.all {\nresolutionStrategy.force 'com.android.support:support-v4:26.0.0'\n}" >> platforms/android/build.gradle
echo "android platform fixed"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment