flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.14k stars 27.47k forks source link

android build apk error flutter gradle' line: 896 #63990

Closed umang6alpha closed 4 years ago

umang6alpha commented 4 years ago

in debug and profile mod run perfectly fine but when i try to release build i got error

flutter build apk --split-per-abi Running "flutter pub get" in Life... 1.8s Running Gradle task 'assembleRelease'...

Codepoint 58849 not found in font, aborting.

FAILURE: Build failed with an exception.

BUILD FAILED in 5m 28s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1) [√] Android Studio (version 4.0) [√] VS Code (version 1.48.0) [√] Connected device (1 available)

• No issues found!

jonahwilliams commented 4 years ago

@dnfield

dnfield commented 4 years ago

I think this is probably a duplicate of https://github.com/flutter/flutter/issues/60325.

Can you re-try on master?

It would also help to have the full verbose logs.

dnfield commented 4 years ago

The fix for this on master is about to get reverted, but will reland sometime soon.

dnfield commented 4 years ago

Fix relanded in https://github.com/flutter/engine/pull/20609

I'm going to close this - if you have more details to add (like that this isn't working with the newer harfbuzz), please add a comment and we'll re-open.

umang6alpha commented 4 years ago

} Codepoint 58849 not found in font, aborting.

FAILURE: Build failed with an exception.

dnfield commented 4 years ago

Yeah, that log confirms this is the harfbuzz issue. Please retry on master and reopen if it's still not working.

umang6alpha commented 4 years ago

i got error in master also

Because every version of flutter_test from sdk depends on vector_math 2.1.0-nullsafety.2 and Homeopathy depends on vector_math 2.0.8, flutter_test from sdk is forbidden. So, because Homeopathy depends on flutter_test any from sdk, version solving failed. Running "flutter pub get" in Life... pub get failed (1; So, because Homeopathy depends on flutter_test any from sdk, version solving failed.)

umang6alpha commented 4 years ago

name: Homeopathy description: World Class Homeopathic Treatment

The following defines the version and build number for your application.

A version number is three numbers separated by dots, like 1.2.43

followed by an optional build number separated by a +.

Both the version and the builder number may be overridden in flutter

build by specifying --build-name and --build-number, respectively.

In Android, build-name is used as versionName while build-number used as versionCode.

Read more about Android versioning at https://developer.android.com/studio/publish/versioning

In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.

Read more about iOS versioning at

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.7.6+3001

environment: sdk: ">=2.7.0 <3.0.0"

dependencies: logs: git: https://github.com/pq/logs flutter: sdk: flutter http: 0.12.1 html_unescape: 1.0.1+3 provider: 4.1.2 after_layout: 1.0.7+2 font_awesome_flutter: 8.8.1 vector_math: 2.0.8 carousel_pro: 1.0.0 flutter_widget_from_html: 0.3.3+4 configurable_expansion_tile: 1.0.0 timeago: 2.0.26 share: 0.6.4+3 validate: 1.7.0 country_pickers: 1.3.0 shared_preferences: 0.5.7+3 firebase_messaging: 6.0.16 firebase_analytics: 5.0.14 transparent_image: 1.0.0 pull_to_refresh: 1.5.8 localstorage: 3.0.2+5 notification_permissions: 0.4.4 flare_splash_screen: 3.0.1 rate_my_app: 0.6.1+3 page_indicator: 0.3.0 intro_slider: 2.3.1 url_launcher: 5.4.10 extended_image: 0.8.0 firebase_core: 0.4.4 # keep these version as there is new issue firebase_auth: 0.15.3 # with the latest firebase https://github.com/FirebaseExtended/flutterfire/issues/2084 flutter_webview_plugin: 0.3.11 connectivity: 0.4.8+6 random_string: 2.0.1 google_maps_flutter: 0.5.28+1 cached_network_image: 2.2.0+1 uuid: 2.0.4 uni_links: 0.4.0 flutter_staggered_grid_view: 0.3.0 auto_size_text: 2.1.0 flutter_swiper: 1.1.6 flutter_widgets: 0.1.12 video_player: 0.10.11+1 flutter_spinkit: 4.1.2+1 percent_indicator: 2.1.3 animated_text_kit: 2.1.0 wave: 0.0.8 http_auth: 0.2.9 firebase_admob: 0.9.3+2 facebook_audience_network: 0.6.1 pin_code_fields: 3.0.1 flutter_facebook_login: 3.0.0 webview_flutter: 0.3.22+1 rubber: 0.4.0 flutter_localizations: sdk: flutter custom_splash: 0.0.2 apple_sign_in: 0.1.0 google_sign_in: 4.5.1 google_fonts: 1.1.0 flutter_statusbarcolor: 0.2.3 app_settings: 4.0.0 animated_splash: 1.0.0 firebase_database: 3.1.6 event_bus: 1.1.1 country_code_picker: 1.3.14 flutter_typeahead: 1.8.1 flash: 1.3.1 flutter_cupertino_date_picker: 1.0.26 location: 3.0.2 liquid_swipe: 1.4.3 sticky_headers: 0.1.8+1 onesignal_flutter: 2.4.1 zoom_widget: 0.1.3 awesome_card: 1.1.0

dev_dependencies: flutter_test: sdk: flutter flutter_launcher_icons: 0.7.5 pedantic: 1.8.0+1 # Analysis

Run this script to generate the app icon: flutter pub run flutter_launcher_icons:main

flutter_icons: android: "launcher_icon" ios: true image_path: "assets/images/app_icon.png"

For information on the generic Dart part of this file, see the

following page: https://www.dartlang.org/tools/pub/pubspec

The following section is specific to Flutter.

flutter: uses-material-design: true assets:

dnfield commented 4 years ago

You'll have to bump some version constraints in your app to match what master expects :)

umang6alpha commented 4 years ago

FAILURE: Build failed with an exception.

gouvai commented 4 years ago

I have the same problem. HELP!!

upandya538 commented 4 years ago

Downgrade flutter SDK version your issue Will be resolve I did same thing and my issue solved https://flutter.dev/docs/development/tools/sdk/releases Which project you working on most probably build with different flutter SDK If you need any assistance feel free to post here

gouvai commented 4 years ago

I downgraded the flutter SDK and i am still having the same problem!

upandya538 commented 4 years ago

Did you change channel ?

gouvai commented 4 years ago

Yes, i did change it to master and stable, with both i get an error.

upandya538 commented 4 years ago

Can you share error dettiles? so I can point out errors

gouvai commented 4 years ago

aldairespinosa@Aldairs-MacBook-Air GouVai % flutter channel stable Switching to flutter channel 'stable'... git: From https://github.com/flutter/flutter git: 7c6f9dd23..ce40de69b dev -> origin/dev git: [new branch] flutter-1.22-candidate.3 -> origin/flutter-1.22-candidate.3 git: 83c3ff8ce..d30e36ba8 master -> origin/master git: [new tag] 1.22.0-1.0.pre -> 1.22.0-1.0.pre git: Already on 'stable' git: Your branch is up to date with 'origin/stable'. Successfully switched to flutter channel 'stable'. To ensure that you're on the latest build from this channel, run 'flutter upgrade' aldairespinosa@Aldairs-MacBook-Air GouVai % flutter build apk --split-per-abi Running Gradle task 'assembleRelease'... Codepoint 58849 not found in font, aborting.

FAILURE: Build failed with an exception.

BUILD FAILED in 4m 58s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 299.6s (!) Gradle task assembleRelease failed with exit code 1

diezep commented 4 years ago

Same issue. I come from issue #63112

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.