taljacobson / flutter_mailer

A wrapper on top of MFMailComposeViewController from iOS and Mail Intent on android
MIT License
46 stars 35 forks source link

Note: /Users/administrator/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mailer-2.0.0/android/src/main/java/com/dataxad/flutter_mailer/FlutterMailerPlugin.java uses or overrides a deprecated API #43

Closed Development4A closed 3 years ago

Development4A commented 3 years ago

error message on "flutter build appbundle"

Because http >=0.13.0 depends on http_parser ^4.0.0 and firebase_auth_web <0.4.0-1.0.nullsafety.0 depends on http_parser ^3.1.3, http >=0.13.0 is incompatible with firebase_auth_web <0.4.0-1.0.nullsafety.0. And because firebase_auth >=0.15.2 <0.17.0-dev.1 depends on firebase_auth_web ^0.1.1, http >=0.13.0 is incompatible with firebase_auth >=0.15.2 <0.17.0-dev.1. So, because easy_list_pro depends on both http ^0.13.0 and firebase_auth ^0.15.3, version solving failed.

taljacobson commented 3 years ago

Seems like it a dependency issue with http ^0.13.0 and firebase_auth ^0.15.3 requiring Different major versions of http_parser.

Try to update those packages.

As with the android deprecated APIs, it should still compile.

Development4A commented 3 years ago

Updated the two and got a different error for firebase_core.

Did: dependency: firebase_core: ^1.5.0 dependency_overrides: firebase_core: ^0.4.0

Took the above out and I get: Note: /Users/administrator/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mailer-2.0.0/android/src/main/java/com/dataxad/flutter_mailer/FlutterMailerPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

BUILD FAILED in 48s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done 49.0s Gradle task bundleRelease failed with exit code 1 administrator@iMac easy_list_pro % flutter build appbundle Xlint:deprecation Target file "Xlint:deprecation" not found. administrator@iMac easy_list_pro % flutter build appbundle -Xlint:deprecation Could not find an option with short name "-X".

The ios version is in the App store. I do not know what I am doing.

Development4A commented 3 years ago

Tried to build as an APK instead of APPBUNDLE. the Java message warning disappears but the "app:validateSigningRelease" is still there so it will not build.

taljacobson commented 3 years ago

seems to be a android signing issue.

is this the first time building for release?

try following this https://flutter.dev/docs/deployment/android#signing-the-app

Development4A commented 3 years ago

I have another Flutter App that I had no problem with compiling and send to the Play Store.

Development4A commented 3 years ago

I created a new signature file. No change.

Development4A commented 3 years ago

I tried from the internet: “flutter build appbundle --target-platform android-arm,android-arm64,android-x64”. No Java error but here is still the “app:validateSigningRelease” error, so no build.

Development4A commented 3 years ago

I tried: flutter build appbundle --debug --verbose I do not see an error message at the end of the report. No "release" file at [project]/build/app/outputs/bundle/release/app.aab There is no release folder.

Development4A commented 3 years ago

I found the problem. I misspelled key.properties.

Sorry about taking up so much space.