简体   繁体   中英

Android Studio error when trying to run app

I am trying a simple Android app with a WebView to show a local html page.

The project builds OK, but when clicking the run button I get the following error:

Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/jdk1.8.0_05/bin/java'' finished with non-zero exit value 2

What may be causing this error? I have done more complex apps without problems, so I guess it is something related to the html staff.

Just solved my problem doing the following in the build.gradle(Module:app):

I removed the first compile:

dependencies {
    // compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:+'
    compile 'com.android.support:support-v4:+'
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM