Quick Tip: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.

If you try to build your ionic/cordova project running with

cordova build --release android

and the shell returns the following error

Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.

the following worked for me:

cordova platform remove android
cordova platform add android
cordova platform update android@6.2.1
cordova build --release android

There is nothing wrong with your gradle installation nor with your Android SDK. It looks like an error specific to cordova 6.2.0 and was fixed in cordova 6.2.1. At the time of writing, cordova installed 6.2.0 instead of version 6.2.1, so you need to manually update.

Quick Tip: MySQL Workbench 6.3 (macOS Sierra) hangs on simple queries

Update: This issue is now fixed in MySQL Workbench 6.3.9

After upgrading MySQL Workbench 6.2 to 6.3, my Workbench displayed Mac’s spinning wheel of death almost all the time, even with the most simple query:

SELECT * FROM ecruite.MenuItem;

The queried table consists of 4 rows with 10 columns each and approx. 10 characters each. So it should be done in no time. Except if you’re using macOS Sierra and MySQL Workbench 6.3 you get the spinning wheel.

According to a user on SO, it’s a known bug and popped up with the introduction of a new security feature in Sierra: “Gatekeeper Path Randomization“.

As long as there is no bug-fixed version of MySQL Workbench, here is a workaround until MySQL releases a new version:

Continue reading “Quick Tip: MySQL Workbench 6.3 (macOS Sierra) hangs on simple queries”

Quick Tip: Install a specific Git Repository Branch/SHA Hash with Bower

The other day I had to hotfix ngQuill, a nice angular.js wrapper for the quill.js editor. A variable with an initial value prevented Copy & Paste events in our project and I couldn’t wait to get my pull request merged into the original github repository as we had to release a working version.

As a workaround I tried to do a bower install with the latest commit (or SHA hash) of my forked repository. As my fork is not published on bower, I used the entire URL to install the bower package and ended up with the following error:

bower ENORESTARGET URL sources can't resolve targets

The Fix: https:// VS. git://

Try to replace the prefix “https:” and instead use “git:” for the repository and it will work.

Branch works with git://

bower install 'git://github.com/Cordobo/ngQuill#develop' --save

SHA Hash works with git://

bower install 'git://github.com/Cordobo/ngQuill#2f33302' --save

Both won’t work with https://

bower install 'https://github.com/Cordobo/ngQuill#develop' --save
bower install 'https://github.com/Cordobo/ngQuill#2f33302' --save

If you used the --save-flag, your bower.json file has a new entry similar to this one:

"ngQuill": "git://github.com/Cordobo/ngQuill#2f33302"

If you know why it works with the prefix git and not with https, let me know in the comments.

Quick Tip: Release iOS 7 Apps with Xcode 8

Xcode 8 with iOS 7
Build iOS 7 Apps with Xcode 8

If you (like me) wanted all the new bells and whistles in Xcode 8 and realized too late, that the latest officially supported iOS Version of Xcode 8 is iOS 8 and you need support for the iPhone 4 or iPad mini (both run on iOS 7) in one app, here are the good news: You don’t have to go back to Xcode 7 – we built and released a working App for iOS 7 with Xcode 8.

Continue reading “Quick Tip: Release iOS 7 Apps with Xcode 8”