leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
890 stars 122 forks source link

publish_to fir. android release failed #230

Open jackson0122 opened 3 weeks ago

jackson0122 commented 3 weeks ago

Successfully packaged build/1.0.0+1/abc-1.0.0+1-android.apk

RELEASE FAILED in 47s Exception: Missing ANDROID_HOME environment variable.

0 AppPackageParserApk.parse (package:parse_app_package/src/parsers/apk/app_package_parser_apk.dart:14:7)

1 parseAppPackage (package:parse_app_package/src/parse_app_package.dart:15:17)

2 AppPackagePublisherFir.publish (package:flutter_app_publisher/src/publishers/fir/app_package_publisher_fir.dart:68:37)

3 FlutterAppPublisher.publish (package:flutter_app_publisher/src/flutter_app_publisher.dart:30:28)

4 FlutterDistributor.publish (package:flutter_distributor/src/flutter_distributor.dart:251:56)

5 FlutterDistributor.release (package:flutter_distributor/src/flutter_distributor.dart:345:19)

#6 CommandRunner.runCommand (package:args/command_runner.dart:212:13) - name: dev-android package: platform: android target: apk skip_clean: true build_args: target-platform: android-arm64 publish_to: fir ios is right
jackson0122 commented 3 weeks ago

publish_to pgyer is right

jackson0122 commented 3 weeks ago

variables: FIR_API_TOKEN: "sdasnjsadhsakdashjkdgaskhjgd" output: build/ releases: