Android development using Gradle in IntelliJ 13

I am able to open the project and get it to compile, but when trying to debug on a device, I get:

Uploading file
 local path: /Users/mwu/src/MyProject/classes/production/MyProject/MyProject.apk
 remote path: /data/local/tmp/com.myproject
Local path doesn't exist.

Something interesting is that when opening the Android Variants window (View/Tool Windows/Build Variants), it is empty (no variants). I can't figure out what I need to do to add a variant.

The project does debug properly under Android Studio, but I have some web views which have some html and javascript that it is nice to have the web plugins for. In Android Studio, I get one module with two variants (Debug and Release) listed. When running on Android Studio, deploying the build looks like this (note the different path):

Uploading file
 local path: /Users/mwu/src/MyProject/build/apk/MyProject-debug-unaligned.apk
 remote path: /data/local/tmp/com.myproject
Installing com.myproject

I'm not sure if the variants have anything to do with this, but it was a difference that I could find.

Does anyone know why I would not be able to deploy and debug on a device in IntelliJ 13?


Edit: It looks like this is the same issue as this thread:

Please sign in to leave a comment.