Hi all,
i try to deploy my project .
`
name: Deploy to Firebase
on:
workflow_dispatch:
inputs:
main_branch:
type: string
required: true
default: 'master'
description: 'Branch of the main repository to build'
sdk_branch:
type: string
required: true
default: 'master'
description: 'Branch of MayIoTSDK to build with'
release_notes:
type: string
required: true
default: 'Manual Debug Build'
description: 'Release Notes'
jobs:
build:
runs-on: ubuntu-latest
environment: debug # This should match the environment name where your secrets are stored
steps:
- name: Checkout main repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.main_branch }} # Dynamically set branch for the main repository
- name: Checkout second repository
uses: actions/checkout@v4
with:
submodules: true
repository: 'MayIT/MayIoTSDK_Android'
token: ${{secrets.REPO_ACCESS_TOKEN}}
path: 'MayIoTSDK_Android/MayIoTSDK'
ref: ${{ github.event.inputs.sdk_branch }} # Dynamically set branch for the submodule
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: ./gradlew build
- name: Execute Gradle command - assembleDebug
run: ./gradlew assembleDebug
- name: Upload Artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: testers
file: app/build/outputs/apk/debug/app-debug.apk
releaseNotes: ${{ github.event.inputs.release_notes }}`
and this dependency is my app gradle :
implementation project(":MayIoTSDK")
and this is my project setting :
rootProject.name = "MayAndroid.2.0"
include ':app'
include ':MayIoTSDK'
project(':MayIoTSDK').projectDir = new File(settingsDir, '../MayIoTSDK_Android/MayIoTSDK')
and then i try to build version and i got this error :
` What went wrong:
Could not determine the dependencies of task ':app:compileStageJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:stageCompileClasspath'.
Could not resolve project :MayIoTSDK.
Required by:
project :app
> No matching configuration of project :MayIoTSDK was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'stage', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.3', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the consumable configurations have attributes.
`
what i can do to fix it? ty
Hi all,
i try to deploy my project .
`
name: Deploy to Firebase
on:
workflow_dispatch:
inputs:
main_branch:
type: string
required: true
default: 'master'
description: 'Branch of the main repository to build'
sdk_branch:
type: string
required: true
default: 'master'
description: 'Branch of MayIoTSDK to build with'
release_notes:
type: string
required: true
default: 'Manual Debug Build'
description: 'Release Notes'
jobs:
build:
runs-on: ubuntu-latest
environment: debug # This should match the environment name where your secrets are stored
and this dependency is my app gradle :
implementation project(":MayIoTSDK")and this is my project setting :
and then i try to build version and i got this error :
` What went wrong:
Could not determine the dependencies of task ':app:compileStageJavaWithJavac'.