Gradle assembleDebug and preDexDebug do not work even for a new project

I encountered an error trying to compile the launch of my project. This even happens if I try to start a new project with an empty action in Android Studio.

The error occurs during the gradle preDexDebug task.

Error:Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    /Users/myname/Dev/tools/android-sdk-macosx/build-tools/19.0.3/dx --dex --output      /Users/myname/Dev/products/MyApplication2/app/build/pre-dexed/debug/classes-fd798db4dfad23fbf10ff420c899a156c7f9dc1e.jar /Users/myname/Dev/products/MyApplication2/app/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/classes.jar
  Error Code: 1

Below is my project configuration (both online and offline):

http://i.stack.imgur.com/fffQZ.png http://i.stack.imgur.com/fbGss.png

Has anyone encountered the same error?

UPDATE

If I start manually from the command line (project root folder)

chmod +x ./gradlew
./gradlew assembleDebug

Launching a task, and again I can create and run a project in Android Studio

+4
source share
1

, , , , Android Studio , .

- Android 0.8.1 OSX mavericks.

+2

Source: https://habr.com/ru/post/1539115/


All Articles