Giter VIP home page Giter VIP logo

fl_umeng's Introduction

Visitor count

fl_umeng's People

Contributors

wanghuasheng avatar wayaer avatar zaqzaq163 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fl_umeng's Issues

Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.

`buildscript {
ext.kotlin_version = '1.3.50'
repositories {
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.5.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}/*  */

}
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-5.6.2-all.zip提示如下The class is loaded from /Users/edy/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.30/d68efdea04955974ac1020f8f66ef8176bfbce1f/kotlin-stdlib-1.5.30.jar!/kotlin/Unit.class
e: /Users/edy/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/fl_umeng-2.2.0/android/src/main/kotlin/fl/umeng/UMengPlugin.kt: (114, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from /Users/edy/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.30/d68efdea04955974ac1020f8f66ef8176bfbce1f/kotlin-stdlib-1.5.30.jar!/kotlin/Unit.class

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':fl_umeng:compileDebugKotlin'.

Compilation error. See log for more details`
一定要修改kotlin版本 能否支持低版本的kotlin

IOS崩溃

我已经更新到2.50了也看到您在2.3.1修改了bug。不过依然提示错误,flutter2.10.3 ios 15.1.1
界面会卡住不动。

2022-05-08 00:27:02.931516+0800 Runner[25951:23398983] requestIDFA:NO
================开启网络模块的开发者必读提醒!!!=================
========同时集成U-UAPM网络模块和NSURLProtocol特别注意如下========
========保证NSURLProtocol先初始化,U-UAPM网络模块后初始化=========
=========================示例代码如下:========================
[NSURLProtocol registerClass:[UMURLProtocol class]];

UMAPMConfig* config = [UMAPMConfig defaultConfig];
config.networkEnable = YES;
[UMCrashConfigure setAPMConfig:config];
[UMConfigure initWithAppkey:UMAPPKEY channel:UMChannel];

FAQ链接如下:
https://developer.umeng.com/docs/193624/detail/352123

2022-05-08 00:27:03.060495+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.060522+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfaac0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Foreground Assertion' for process with PID=25959, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.060828+0800 Runner[25951:23398983] [Reporter] SDK init success
2022-05-08 00:27:03.062832+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.062895+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfab80 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Foreground Assertion' for process with PID=25963, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.063356+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.063603+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfabe0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Foreground Assertion' for process with PID=25962, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.065162+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.065946+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfac40 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=25953, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.066903+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.066929+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfaca0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=25953, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.067221+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.067243+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfad00 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=25954, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.067572+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.067591+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfadc0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=25954, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.067750+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.067773+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfae80 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=25955, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.067934+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.067952+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfaee0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=25955, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.068094+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.068112+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfaf40 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=25956, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.068251+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.068271+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfafa0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=25956, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-05-08 00:27:03.068408+0800 Runner[25951:23399161] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-05-08 00:27:03.068430+0800 Runner[25951:23399161] [ProcessSuspension] 0x11cdfb000 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=25957, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}

Android 提示“基础组件库完整性自检未通过!请检查应用混淆配置。“

D/UMLog (23072): 统计SDK常见问题索引贴 详见链接 http://developer.umeng.com/docs/66650/cate/66650
I/UMLog (23072): 统计SDK初始化成功
I/flutter (23072): Umeng 初始化成功 = true
W/m.xxx.test(23072): Accessing hidden method Landroid/os/Build;->getString(Ljava/lang/String;)Ljava/lang/String; (unsupported, reflection, allowed)
E/m.xxx.test(23072): Invalid ID 0x00000000.
W/System.err(23072): android.content.res.Resources$NotFoundException: String resource ID #0x0
W/System.err(23072): at android.content.res.Resources.getText(Resources.java:502)
W/System.err(23072): at android.content.res.Resources.getString(Resources.java:598)
W/System.err(23072): at com.umeng.umzid.ZIDManager.a(:18)
W/System.err(23072): at com.umeng.umzid.ZIDManager.a(:34)
W/System.err(23072): at com.umeng.umzid.ZIDManager$b.run(:1)
W/System.err(23072): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/System.err(23072): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err(23072): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
W/System.err(23072): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(23072): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(23072): at java.lang.Thread.run(Thread.java:930)
I/UMLog (23072): *com.umeng.commonsdk.a
I/UMLog (23072): 基础组件库完整性自检未通过!请检查应用混淆配置。
I/UMLog (23072): 统计SDK版本号: 9.5.6
I/UMLog (23072): ZID SDK版本号: 1.6.3

最新版2.3.1插件,iOS运行报错

Launching lib/main.dart on iPhone 13 in debug mode...
Xcode build done.                                            1.5s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[28929]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e54b7130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10618c2c8). One of the two will be used. Which one is undefined.
    objc[28929]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e54b7180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10618c318). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **
Xcode's output:
↳
    In file included from /Users/xxx/Downloads/fl_umeng-2.3.1/ios/Classes/UMengPlugin.m:2:
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/UMConfigure.h:38:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    In file included from /Users/xxx/Downloads/fl_umeng-2.3.1/ios/Classes/UMengPlugin.m:3:
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:28:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:36:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:44:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:59:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:57:10: warning: parameter 'label' not found in the function declaration [-Wdocumentation]
     @param  label 分类标签。不同的标签会分别进行统计,方便同一事件的不同标签的对比,为nil或空字符串时后台会生成和eventId同名的标签.
             ^~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:58:10: warning: parameter 'accumulation' not found in the function declaration [-Wdocumentation]
     @param  accumulation 累加值。为减少网络交互,可以自行对某一事件ID的某一分类标签进行累加,再传入次数作为参数。
             ^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:82:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:79:10: warning: parameter 'label' not found in the function declaration [-Wdocumentation]
     @param  label 分类标签。不同的标签会分别进行统计,方便同一事件的不同标签的对比,为nil或空字符串时后台会生成和eventId同名的标签.
             ^~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:80:10: warning: parameter 'primarykey' not found in the function declaration [-Wdocumentation]
     @param  primarykey 这个参数用于和event_id一起标示一个唯一事件,并不会被统计;对于同一个事件在beginEvent和endEvent 中要传递相同的eventId 和 primarykey
             ^~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:81:9: warning: parameter 'millisecond' not found in the function declaration [-Wdocumentation]
     @param millisecond 自己计时需要的话需要传毫秒进来
            ^~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:136:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:135:9: warning: parameter 'provider' not found in the function declaration [-Wdocumentation]
     @param provider : 不能以下划线"_"开头,使用大写字母和数字标识; 如果是上市公司,建议使用股票代码。
            ^~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:143:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:155:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void
     ~^~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:174:3: warning: '@return' command used in a comment that is attached to a method returning void [-Wdocumentation]
     @return void.
     ~^~~~~~~~~~~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:187:11: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param key
     ~~~~~~~~~^
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:187:9: warning: parameter 'key' not found in the function declaration [-Wdocumentation]
     @param key
            ^~~
    /Users/xxx/Downloads/fl_umeng-2.3.1/example/ios/Pods/UMCommon/UMCommon_7.3.5/UMCommon.framework/Headers/MobClick.h:187:9: note: did you mean 'propertyName'?
     @param key
            ^~~
            propertyName
    /Users/xxx/Downloads/fl_umeng-2.3.1/ios/Classes/UMengPlugin.m:80:31: error: no known class method for selector 'enableNetworkForProtocol:'
                [UMCrashConfigure enableNetworkForProtocol:args[@"enableNetworkForProtocol"]];
                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    18 warnings and 1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited (sigterm)

fl_umeng: 2.3.1
flutter: 2.8.1
xcode: 13.2.1
iOS: 15.2

Android不能实时统计到数据,log有个获取资源的报错

在看板不能实时更新启动次数等数据,iOS可以,看log,有报获取资源的错误,这个我应该如何修改?
W/.yueyou.jx3ton(20594): Accessing hidden method Landroid/os/Build;->getString(Ljava/lang/String;)Ljava/lang/String; (greylist, reflection, allowed)
E/.yueyou.jx3ton(20594): Invalid ID 0x00000000.
W/System.err(20594): android.content.res.Resources$NotFoundException: String resource ID #0x0
W/System.err(20594): at android.content.res.Resources.getText(Resources.java:459)
W/System.err(20594): at android.content.res.MiuiResources.getText(MiuiResources.java:97)
W/System.err(20594): at android.content.res.Resources.getString(Resources.java:552)
W/System.err(20594): at com.umeng.umzid.ZIDManager.a(:21)
W/System.err(20594): at com.umeng.umzid.ZIDManager.b(:5)
W/System.err(20594): at com.umeng.umzid.ZIDManager$b.run(Unknown Source:4)
W/System.err(20594): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/System.err(20594): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err(20594): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
W/System.err(20594): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(20594): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(20594): at java.lang.Thread.run(Thread.java:923)
I/UMLog (20594): 统计SDK版本号: 9.3.8
I/UMLog (20594): ZID SDK版本号: 1.2.2
I/MobclickAgent(20594): module init:azio

is it possible to downgrade gradle to 5.3.1

Hi,

I have got this kind of error to use fl_umeng,

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/jerryzhou/.pub-cache/hosted/pub.flutter-io.cn/fl_umeng-1.1.9/android/build.gradle' line: 26

* What went wrong:
A problem occurred evaluating project ':fl_umeng'.
> Failed to apply plugin [id 'kotlin-android']
> The current Gradle version 5.3.1 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin.

But after upgrade gradle to 6.1.1, will get error bellow:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':add_2_calendar'.
> Failed to notify project evaluation listener.
> 'org.gradle.api.file.RegularFileProperty org.gradle.api.file.ProjectLayout.fileProperty(org.gradle.api.provider.Provider)'

I was wonder if it possible that fl_umeng downgrade gradle dependency to gradle-5.3.1-all.zip ?

bug(Android): 设置用户账号显示来源长度超过限制

代码:await FlUMeng().signIn(user.id, provider: 'Phone');
image
插件版本: fl_umeng: ^3.6.1
[✓] Flutter (Channel stable, 3.19.1, on Microsoft Windows [版本 10.0.22631.3155], locale zh-CN)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.0 Preview 1.0)
[✓] Android Studio (version 2023.1)
[✓] Connected device (3 available)
[✓] Network resources

iOS上崩溃

iOS14,15均会崩溃
Flutter 2.8.1

================开启网络模块的开发者必读提醒!!!=================
========同时集成U-UAPM网络模块和NSURLProtocol特别注意如下========
========保证NSURLProtocol先初始化,U-UAPM网络模块后初始化=========
=========================示例代码如下:========================
    [NSURLProtocol registerClass:[UMURLProtocol class]];

    UMAPMConfig* config = [UMAPMConfig defaultConfig];
    config.networkEnable = YES;
    [UMCrashConfigure setAPMConfig:config];
    [UMConfigure initWithAppkey:UMAPPKEY channel:UMChannel];

FAQ链接如下:
https://developer.umeng.com/docs/193624/detail/352123
=============================================================
2022-01-07 16:41:15.211428+0800 APP[75575:376773] [Reporter] SDK init success
2022-01-07 16:41:15.215493+0800 APP[75575:376773] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2022-01-07 16:41:15.215553+0800 APP[75575:377117] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2022-01-07 16:41:15.216202+0800 APP[75575:376773] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2022-01-07 16:41:15.216271+0800 APP[75575:377117] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2022-01-07 16:41:15.218045+0800 APP[75575:376773] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2022-01-07 16:41:15.218372+0800 APP[75575:377117] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2022-01-07 16:41:15.232616+0800 APP[75575:377148] APP: UmengAnalytics after preinit
2022-01-07 16:41:15.267970+0800 APP[75575:376773] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff20421af6 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff20177e78 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2049e77f _CFThrowFormattedException + 194
	3   CoreFoundation                      0x00007fff204a9ec4 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0
	4   CoreFoundation                      0x00007fff2048ccb7 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 235
	5   CoreFoundation                      0x00007fff20420773 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
	6   APP                           0x000000010d2f76f3 __37+[UMengPlugin registerWithRegistrar:]_block_invoke + 835
	7   Flutter                             0x000000010e367891 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 104
	8   Flutter                             0x000000010de10c3d _ZNK7flutter21PlatformMessageRouter21HandlePlatformMessageENSt3__110unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE + 193
	9   Flutter                             0x000000010de162f7 _ZN7flutter15PlatformViewIOS21HandlePlatformMessageENSt3__110unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE + 35
	10  Flutter                             0x000000010e2416b9 _ZNSt3__110__function6__funcIN3fml8internal14CopyableLambdaIZN7flutter5Shell29OnEngineHandlePlatformMessageENS_10unique_ptrINS5_15PlatformMessageENS_14default_deleteIS8_EEEEE4$_16EENS_9allocatorISD_EEFvvEEclEv + 81
	11  Flutter                             0x000000010e146856 _ZN3fml15MessageLoopImpl10FlushTasksENS_9FlushTypeE + 164
	12  Flutter                             0x000000010e14cd08 _ZN3fml17MessageLoopDarwin11OnTimerFireEP16__CFRunLoopTimerPS0_ + 26
	13  CoreFoundation                      0x00007fff20390c57 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
	14  CoreFoundation                      0x00007fff2039072a __CFRunLoopDoTimer + 926
	15  CoreFoundation                      0x00007fff2038fcdd __CFRunLoopDoTimers + 265
	16  CoreFoundation                      0x00007fff2038a35e __CFRunLoopRun + 1949
	17  CoreFoundation                      0x00007fff203896d6 CFRunLoopRunSpecific + 567
	18  GraphicsServices                    0x00007fff2c257db3 GSEventRunModal + 139
	19  UIKitCore                           0x00007fff24696cf7 -[UIApplication _run] + 912
	20  UIKitCore                           0x00007fff2469bba8 UIApplicationMain + 101
	21  APP                           0x000000010d058f80 main + 112
	22  libdyld.dylib                       0x00007fff2025a3e9 start + 1
	23  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.6 - Device: iPhone 12 Pro Max (E16972F9-F8EE-44C5-A96D-B19858CD8B9D) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 Pro Max

可能和官方文档
https://developer.umeng.com/docs/193624/detail/291394
中的描述有关:


集成NSURLProtocol和U-APM的网络模块注意事项
增加网络分析模块在iOS13及以下系统的单独开关,以避免在同时集成NSURLProtocol和U-APM的网络模块的本身冲突引起崩溃,特增加enableNetworkForProtocol函数。

/**
 *  @brief 设置APM的网络模块针对iOS13及以下系统的单独开关,以避免在同时集成NSURLProtocol和APM的网络模块的本身冲突引起崩溃。
 *  如果需要调用,在初始化UAPM网络模块前调用。
 *
 *  @param enable 指定开关。YES:(捕获iOS13及以下特定网络请求,默认开启)。NO:不捕获iOS13及以下特定网络请求。
 *
 *  @note 问题原因:同时集成NSURLProtocol和APM的网络模块的场景,先初始化APM的网络模块,再初始化NSURLProtocol的registerClass,会导致崩溃在iOS13及以下版本会崩溃,目前可以确定为iOS系统API引起的问题,iOS14无此问题。(先初始化NSURLProtocol的registerClass,再初始化APM的网络模块,是不会出现问题的)
 *  兼容iOS13及以下的初始化代码如下:
 *  @example:
 *  //确保NSURLProtocol的初始化在UMAPM的上面
 *  [NSURLProtocol registerClass:[UMURLProtocol class]];
 *  UMAPMConfig* config = [UMAPMConfig defaultConfig];
 *  config.networkEnable = YES;
 *  [UMCrashConfigure setAPMConfig:config];
 *  [UMConfigure initWithAppkey:UMAPPKEY channel:@"App Store"];
 *
 *  @note
 *  此开关默认打开,在同时集成NSURLProtocol和APM的网络模块的场景时候,根据需要调用,如果按照上述初始化顺序,不需要调用。
 *  
 *  @note 此函数关闭生效后,不会完全关闭网络模块,只是针对特定网络请求不再捕获,如果开发者能知道同时集成NSURLProtocol和APM的网络模块的场景的时候,最好通过调整初始化顺利来兼容所有场景,并在iOS13及以下版本测试兼容性。
 *  @note:其他场景下,不需要调用此函数。
 */
+(void)enableNetworkForProtocol:(BOOL)enable;

IOS上无法编译

image

No known class method for selector 'enableNetworkForProtocol:'

[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale zh-Hans)
• Flutter version 2.8.1 at /Users/virs/fvm/versions/2.8.1
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (5 周前), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/virs/Library/Android/sdk
• Platform android-32, build-tools 30.0.3
• ANDROID_HOME = /Users/virs/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.32.0

[✓] Connected device (3 available)
• iPhone (mobile) • 00008030-001231D80231802E • ios • iOS 15.1 19B74
• macOS (desktop) • macos • darwin-x64 • macOS 12.1 21C52 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.71

• No issues found!

无法通过集成测试看到实时数据

如题,现在是在init之前调用preInit的,如果不在Application.onCreate里面调用preInit方法就无法通过官方的集成测试看到实时数据,至于实际的数据上报有没有问题就不知道了。
我反复测试过,只要在Application.onCreate里面调用了preInit,就没问题,跟了下preInit的代码,没找到原因。
只测试了android,不确定iOS有没有问题。

安卓没有数据。

注册成功显示true,集成测试也不显示数据,我也不清楚我哪错了, 后来我把作者的例子代码复制到我的flutter项目,改了appkey之后启动也无数据,可以intent唤起app,但是开始测试也是无数据。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.