Git Product home page Git Product logo

build-signed-apk's Introduction

victorbnl

Hi! I'm Victor. I'm a software developer.

Main projects

Other

build-signed-apk's People

Contributors

acmcmc avatar victorbnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

build-signed-apk's Issues

cannot access './gradlew': No such file or directory

Hello,

I'm using your github action on a Ionic + Capacitor project. And that means the ./gradlew file is not in the root of my project, but inside an android sub-directory.
image

This leads to the following error (well, I think that's the cause...) :

Run cp android.jks $GITHUB_WORKSPACE/signing-key.jks
Run chmod +x ./gradlew
chmod: cannot access './gradlew': No such file or directory
Error: Process completed with exit code 1.

Would it be possible to define another working directory in your action?

signing-key.jks: No such file or directory

Hey Victor B!
I'm using your action, but since your last commits on main, it seems to be broken for me.

Without changing anything from version 94e3f19
I now get -Pandroid.injected.signing.store.file=/home/runner/work/<my-project-name>/<my-project-name>/signing-key.jks: No such file or directory on every build at step:

- shell: bash
      working-directory: ${{ inputs.gradlew_dir }}
      run: |
        ./gradlew build
        ./gradlew assembleRelease
       ....

Confusion over `keystore` parameter

Right now, the documentation doesn't make it very clear that the keystore parameter on the GitHub action should be the contents of the key file.

It is easy to get confused, and think that it is instead the path to the key file, encoded in base64.

I believe that it would be better to have two separate inputs:

  • keystore_b64: The current keystore input. The contents of the keystore file, in base64.
  • keystore_file: A path to the keystore file. It should not be encoded in base64.

The user should only provide one of the parameters, and it will get used to sign the APK.

Licences agreement error

Thanks for the update. Now I'm getting this error:

What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;34.0.0-rc3 Android SDK Build-Tools 34-rc3
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  All licenses can be accepted using the sdkmanager command line tool:
  sdkmanager.bat --licenses

Originally posted by @acolombo25 in #5 (comment)

R!: command not found

It looks like there's still a little problem after the build finished

> Task :app:assembleRelease

BUILD SUCCESSFUL in 12s
38 actionable tasks: 2 executed, 36 up-to-date
/home/runner/work/_temp/fdffee6c-3446-4e23-ae4e-a278fb2e0713.sh: line 7: R!: command not found
Error: Process completed with exit code 127.

Originally posted by @acolombo25 in #6 (comment)

Not working with newly created project using Android Studio Hedgehog

If you create a new project using Android Studio Hedgehog then the workflow fails because it's not happy with
id("com.android.application") version "8.2.0-alpha03" apply false in the plugins block of the main build.gradle.kts file

Error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'lock-screen'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:8.2.0-alpha03.
     Required by:
         project : > com.android.application:com.android.application.gradle.plugin:8.2.0-alpha03
      > No matching variant of com.android.tools.build:gradle:8.2.0-alpha03 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0' but:
          - Variant 'apiElements' capability com.android.tools.build:gradle:8.2.0-alpha03 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'javadocElements' capability com.android.tools.build:gradle:8.2.0-alpha03 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'runtimeElements' capability com.android.tools.build:gradle:8.2.0-alpha03 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 11
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
          - Variant 'sourcesElements' capability com.android.tools.build:gradle:8.2.0-alpha03 declares a component for use during runtime, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.0')

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 49s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.