错误:“路径”参数必须是字符串类型。唱歌apk github动作时收到类型未定义
Posted
技术标签:
【中文标题】错误:“路径”参数必须是字符串类型。唱歌apk github动作时收到类型未定义【英文标题】:Error: The "path" argument must be of type string. Received type undefined when singing apk github actions 【发布时间】:2021-11-06 12:31:27 【问题描述】:我仅在尝试在自托管节点上运行工作流时遇到此问题。谁能帮忙?
Run r0adkll/sign-android-release@v1 Preparing to sign key @ app/build/outputs/apk/dev/release with signing key Error: The "path" argument must be of type string. Received type undefined
我的工作流程是这样配置的:
name: Generate Release APK
run: ./gradlew assembleRelease
name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/dev/release
signingKeyBase64: $ secrets.SIGNING_KEY
alias: $ secrets.SIGNING_ALIAS
keyStorePassword: $ secrets.KEY_STORE_PASSWORD
keyPassword: $ secrets.KEY_PASSWORD
【问题讨论】:
【参考方案1】:我使用添加 ANDROID_HOME 的 env 变量解决了我的问题,如下所示:
- name: Sign APK with keystore
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/dev/release
signingKeyBase64: $ secrets.SIGNING_KEY_BASE64
alias: $ secrets.ALIAS
keyStorePassword: $ secrets.KEYSTORE_PASSWORD
keyPassword: $ secrets.KEY_PASSWORD
env:
ANDROID_HOME: $HOME/Android/Sdk
【讨论】:
以上是关于错误:“路径”参数必须是字符串类型。唱歌apk github动作时收到类型未定义的主要内容,如果未能解决你的问题,请参考以下文章
图片上传错误:TypeError [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。接收类型未定义
Nrwl:Storybook 给我错误 TypeError [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。收到未定义
“路径”参数必须是字符串类型。接收到的类型未定义 - Ionic 4 - 仅限 Windows
“路径”参数必须是字符串类型或 Buffer 或 URL cloudinary 和 nodejs 的实例
NodeJS - TypeError [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。收到未定义