Firebase App Distribution 上传错误,缺少有关 APK 路径的信息
Firebase App Distribution Upload error, Missing information about the APK path
在终端中使用 gradle ./gradlew appDistributionUploadRelease
命令将应用发布 apk 上传到 firebase 时出现问题。这个问题是在我更新了一些构建工具后出现的,gms从4.3.3更新到classpath 'com.google.gms:google-services:4.3.4'
,从3.4.2更新到classpath 'com.android.tools.build:gradle:4.0.1'
,不知道这些更新有没有关系有这个问题,但是 ehwn 我现在 运行 ./gradlew appDistributionUploadRelease
命令,我在构建终端
中收到错误
> Task :app:validateSigningRelease UP-TO-DATE
> Task :app:packageRelease UP-TO-DATE
> Task :app:appDistributionUploadRelease FAILED
Found APK at /home/****/agent/workspace/project-name/app/build/intermediates/incremental/packageRelease/tmp/app-release.apk.
Uploading APK to Firebase App Distribution...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:appDistributionUploadRelease'.
> Missing information about the APK path. Please check that an APK path was passed in and try agai
我尝试将构建 gradle 中的 apkPath 显式指定为已确认发布的路径,但仅使用更新后的路径我仍然收到此错误
> Task :app:validateSigningRelease UP-TO-DATE
> Task :app:packageRelease UP-TO-DATE
> Task :app:appDistributionUploadRelease FAILED
Found APK at build/outputs/apk/release/app-release.apk.
Uploading APK to Firebase App Distribution...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:appDistributionUploadRelease'.
> Missing information about the APK path. Please check that an APK path was passed in and try again
我不知道如何解决这个问题,因为我确定 apk 存在于指定路径中,并且 apk 在手动上传到 firebase 时可以正常工作。帮助将不胜感激。
解决了这个问题,这个 classpath 'com.google.firebase:firebase-appdistribution-gradle:2.0.1'
在我的项目级别 build.gradle
的依赖项部分中丢失了。按照说明 here 给信件的人。
在终端中使用 gradle ./gradlew appDistributionUploadRelease
命令将应用发布 apk 上传到 firebase 时出现问题。这个问题是在我更新了一些构建工具后出现的,gms从4.3.3更新到classpath 'com.google.gms:google-services:4.3.4'
,从3.4.2更新到classpath 'com.android.tools.build:gradle:4.0.1'
,不知道这些更新有没有关系有这个问题,但是 ehwn 我现在 运行 ./gradlew appDistributionUploadRelease
命令,我在构建终端
> Task :app:validateSigningRelease UP-TO-DATE
> Task :app:packageRelease UP-TO-DATE
> Task :app:appDistributionUploadRelease FAILED
Found APK at /home/****/agent/workspace/project-name/app/build/intermediates/incremental/packageRelease/tmp/app-release.apk.
Uploading APK to Firebase App Distribution...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:appDistributionUploadRelease'.
> Missing information about the APK path. Please check that an APK path was passed in and try agai
我尝试将构建 gradle 中的 apkPath 显式指定为已确认发布的路径,但仅使用更新后的路径我仍然收到此错误
> Task :app:validateSigningRelease UP-TO-DATE
> Task :app:packageRelease UP-TO-DATE
> Task :app:appDistributionUploadRelease FAILED
Found APK at build/outputs/apk/release/app-release.apk.
Uploading APK to Firebase App Distribution...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:appDistributionUploadRelease'.
> Missing information about the APK path. Please check that an APK path was passed in and try again
我不知道如何解决这个问题,因为我确定 apk 存在于指定路径中,并且 apk 在手动上传到 firebase 时可以正常工作。帮助将不胜感激。
解决了这个问题,这个 classpath 'com.google.firebase:firebase-appdistribution-gradle:2.0.1'
在我的项目级别 build.gradle
的依赖项部分中丢失了。按照说明 here 给信件的人。