FSpaceCore / SpaceCore

SpaceCore is a virtual Android system engine that can engage users clone and run dual applications,this engine can also support device simulation, fake GPS and many other features.SpaceCore是一个虚拟引擎内核,提供在Android上克隆和运行虚拟应用程序,并且已支持设备模拟、模拟定位以及其他更多的功能。
668 stars 133 forks source link

使用流量统计TrafficStats异常 #47

Closed kwey521 closed 12 months ago

kwey521 commented 1 year ago

应用使用TrafficStats.setThreadStatsTag方法时,编译apk后异常,帮忙看看,谢谢 正常使用为: public static void addTrafficStatsTag(String test) { if (Build.VERSION.SDK_INT >= 14) { TrafficStats.setThreadStatsTag(Integer.parseInt(test)); } } 编译后反编译为变成: public static void addTrafficStatsTag(String str) { if (Build.VERSION.SDK_INT >= 14) { Integer.parseInt(str); TestNetwokdispatcher$$ExternalSyntheticThrowNSME0.m(); } } public final / synthetic / class TestNetwokdispatcher$$ExternalSyntheticThrowNSME0 { public static / synthetic / NoSuchMethodError m() { throw new NoSuchMethodError(); } } 运行异常日志是: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.gamehall.sandboxdemo, PID: 13510 java.lang.NoSuchMethodError at com.gamehall.sandboxdemo.TestNetwokdispatcher$$ExternalSyntheticThrowNSME0.m(Unknown Source:2) at com.gamehall.sandboxdemo.TestNetwokdispatcher.addTrafficStatsTag(TestNetwokdispatcher.java:10)

FSpaceCore commented 12 months ago

已修复