I successfully create a project with min sdks to 20, but when I try to build with:
minSdkVersion 21 targetSdkVersion 21
I get an error message:
:project:preDexDebug no classfiles specified FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':project:preDexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/user/android-sdk-macosx/build-tools/21.1.1/dx -JXmx2g
I use libgdx in some places of the application.
Then the installation dialog appears, and if I select the device, I get another error:
Target device: genymotion-google_nexus_6___5_0_0___api_21___1440x2560-192.168.56.103:5555 Uploading file local path: /Users/user/Project-Android/project/build/outputs/apk/project-debug.apk remote path: /data/local/tmp/com.ui.client.debug I/O Error: /Users/user/Project-Android/project/build/outputs/apk/project-debug.apk (No such file or directory)
And then the IDE dialog box pops up with an error message:
Failed to complete Gradle execution. Cause:
(just an empty space after the reason)
source share