[ https://issues.apache.org/jira/browse/CB-13971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-13971. ----------------------------- Resolution: Won't Fix This appears to be an issue with the version of Cordova that you're using. If you're using Ionic, you need to upgrade to one that uses a later version of Cordova, and you need to install Gradle on your system since it is now a dependency. We no longer hook into Android Studio since relying on its copy of gradle is not reliable and we have no idea what Google's plans are regarding Android Studio. > Cannot Build Hello World App > ---------------------------- > > Key: CB-13971 > URL: https://issues.apache.org/jira/browse/CB-13971 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android > Affects Versions: 8.0.0 > Environment: Operating System > {quote}$ lsb_release -a > No LSB modules are available. > Distributor ID: Debian > Description: Debian GNU/Linux 9.3 (stretch) > Release: 9.3 > Codename: stretch > {quote} > > Node > {quote}$ node -v > v9.7.1 > {quote} > > NPM > {quote}$ npm -v > 5.7.1 > {quote} > > Cordova > {quote}$ cordova --version > 8.0.0 > {quote} > > Android Studio About > {quote}Android Studio 3.0.1 > Build #AI-171.4443003, built on November 9, 2017 > JRE: 1.8.0_152-release-915-b01 amd64 > JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o > Linux 4.9.0-4-amd64 > {quote} > > Android Studio SDK > {quote}$ /usr/lib/android-sdk/tools/bin/sdkmanager --version > 26.1.1 > {quote} > > > Reporter: Aaron Suarez > Assignee: Joe Bowser > Priority: Major > > I followed the instructions for creating my first cordova app on > [https://cordova.apache.org/docs/en/latest/guide/cli/index.html] > I am running Debian 9.3 (Stretch), Node 9.7.1 and npm 5.7.1. I can build an > android app using my Android Studio setup, but I cannot build a Cordova app. > {quote}$ cordova requirements > Android Studio project detected > Requirements check results for android: > Java JDK: installed 1.8.0 > Android SDK: installed true > Android target: installed android-27,android-26,android-24 > Gradle: installed /opt/android-studio/gradle/gradle-4.1/bin/gradle > {quote} > > I ran into the issue described here > [https://github.com/ionic-team/ionic-cli/issues/2835] and when I changed the > permissions of my gradle file, I no longer got the "spawn EACCES" error. I do > get a different error though: > {quote}$ cordova build android > Android Studio project detected > ANDROID_HOME=/usr/lib/android-sdk > JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 > studio > FAILURE: Build failed with an exception. > * What went wrong: > Could not initialize class org.codehaus.groovy.runtime.InvokerHelper > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > * Get more help at https://help.gradle.org > BUILD FAILED in 0s > (node:29070) UnhandledPromiseRejectionWarning: Error: > /opt/android-studio/gradle/gradle-4.1/bin/gradle: Command failed with exit > code 1 > at ChildProcess.whenDone > (/home/aaron/Omilia/cordova-toy/MyApp/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23) > at ChildProcess.emit (events.js:127:13) > at maybeClose (internal/child_process.js:936:16) > at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) > (node:29070) UnhandledPromiseRejectionWarning: Unhandled promise rejection. > This error originated either by throwing inside of an async function without > a catch block, or by rejecting a promise which was not handled with .catch(). > (rejection id: 1) > (node:29070) [DEP0018] DeprecationWarning: Unhandled promise rejections are > deprecated. In the future, promise rejections that are not handled will > terminate the Node.js process with a non-zero exit code. > {quote} > I'm not really sure where InvokerHelper is located. Are there additional > dependencies that are not included in the tutorial that would fix this > failure? > Thanks, > Aaron -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org