You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/26 10:47:34 UTC

[GitHub] [cordova-android] anibalsanchez commented on issue #845: Can't find Gradle (Android Studio)

anibalsanchez commented on issue #845:
URL: https://github.com/apache/cordova-android/issues/845#issuecomment-680804932


   I had to rebuild my development workstation and I revisited the topic on Linux.
   
   I'm finding that android-studio-ide-183.5692245-linux.tar.gz **Android Studio v3.4.2** works fine with Cordova CLI 10.0.0. Android Studio v3.4.2 builds the App for API 29/30 and the artifacts are ok for the upcoming Google Play November deprecation (when Apps built with previous API versions are not going to be accepted anymore).
   
   The following Android Studio versions (v3.5.3, v3.6.3 and v4.0.2) don't have gradle as a standalone executable. However, the latest **Android Studio v4.0.2** can be downloaded and installed to configure the general environment; and then, install `gradle-6.6.1-bin.zip` in an external folder and add it to the path. cordova detects that the gradle executable is in the path and builds the app.
   
   ```bash
   $ cordova build
   ....
   Checking Java JDK and Android SDK versions
   ANDROID_SDK_ROOT=..../android-sdk (recommended setting)
   ANDROID_HOME=..../android-sdk (DEPRECATED)
   Using Android SDK: ..../android-sdk
   
   Welcome to Gradle 6.6.1!
   
   Here are the highlights of this release:
    - Experimental build configuration caching
    - Built-in conventions for handling credentials
    - Java compilation supports --release flag
   
   For more details see https://docs.gradle.org/6.6.1/release-notes.html
   
   Starting a Gradle Daemon (subsequent builds will be faster)
   
   BUILD SUCCESSFUL in 3s
   1 actionable task: 1 executed
   Subproject Path: CordovaLib
   Subproject Path: app
   Starting a Gradle Daemon (subsequent builds will be faster)
   
   > Task :app:compileDebugJavaWithJavac
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.
   
   Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
   Use '--warning-mode all' to show the individual deprecation warnings.
   See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
   
   BUILD SUCCESSFUL in 14s
   40 actionable tasks: 40 executed
   Built the following apk(s): 
           ..../platforms/android/app/build/outputs/apk/debug/app-debug.apk
   ```
   
   
    


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org