[The 61st part of the Flutter problem series] About the solution to the problem of appkey is illegal when using MobTech's ShareSDK product for WeChat sharing

This is [The 61st part of the Flutter problem series], if you find it useful, please pay attention to the column.

One: problem description

Two days ago, I used MobTech's ShareSDK product to do the sharing function of WeChat friends and Moments, and encountered a problem in the middle.

When I use the WeChat authorized API interface, the prompt message returned to me is as shown in the figure below. The
insert image description here
main error message is appkey is illegalthat the translated appkey is illegal.

After Baidu failed, I went to issues and found that someone had the same problem as me, but it was not resolved.

Two: Solutions

In your project's MobSDK.gradle file, add a line of code

appBundleMode true

Re-run the project as shown in the figure below,
insert image description here
and the problem is gone.

Then I also raised this question and solution in the issues of the sharesdk_plugin 1.3.2 plugin project , hoping to help more people.

Has your problem been resolved? Welcome to leave a message in the comment area.

Give someone a rose, and there is a lingering fragrance in your hand. If you think the article is good, I hope you can give a one-click three-link, thank you.


concluding remarks

Google's Flutter is getting more and more popular. As of February 27, 2022, the GitHub star has reached 137K. Flutter is resolutely a trend, so as a front-end developer, there is no reason not to learn as soon as possible.

Whether you are a Flutter novice or have already started, you might as well pay attention first. I will write the common components in Flutter (including source code analysis, component usage and precautions) and possible problems in the CSDN blog. I hope While learning by yourself, you can also help more people.

Guess you like

Origin blog.csdn.net/qq_42351033/article/details/123165314