Skip to content

Instantly share code, notes, and snippets.

@ylno
Created March 8, 2018 09:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ylno/1a5933a1cd204d6ec450da28a6b528dc to your computer and use it in GitHub Desktop.
Save ylno/1a5933a1cd204d6ec450da28a6b528dc 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
@beck24
Copy link

beck24 commented Jun 7, 2018

This issue has wasted many hours - your solution worked for me, just wanted to say thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment