这个问题主要是为了 TeamViewer 的支持,谢谢。
在完成长时间的免费 TVSession 时出现错误。如果我关闭连接,它想通知我有关赞助的事情(我想)并崩溃
java.lang.NoClassDefFoundError:android.support.v4.app.NotificationCompat$Builder
背景很重要!我将您的 SDK 集成到用于旧嵌入式设备的非常旧的项目中。它不是 gradle,不使用 appcompat 库并且具有简单的旧 android 结构。实际上,android OS 4.3,项目 SDK API 21,但上限很难:
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="11"/>
那请问你能修好吗?或者如何防止使用不存在的类?请不要导入 appcompat 库。
注意,成功建立并保持会话,一切正常。如果我在几秒钟内关闭会话,一切都很好。
日志:
2017/02/06 03:41:51.119 I/SessionIncomingRemoteSupport handle session teardown
2017/02/06 03:41:51.119 I/SessionIncomingRemoteSupport Session will be terminated by: partner
2017/02/06 03:41:51.119 I/SessionIncomingRemoteSupport trySessionTeardown: teardown
2017/02/06 03:41:51.120 I/RSModule module stopped: Clipboard
2017/02/06 03:41:51.126 I/SessionIncomingRemoteSupport handle session end
2017/02/06 03:41:51.126 I/SessionIncomingRemoteSupport destroying SessionIncomingRemoteSupport
2017/02/06 03:41:51.126 I/TeamViewer CarrierContainer.SendCarrierSwitch: state=2, carrier=1
2017/02/06 03:41:51.126 I/TeamViewer UdpCarrierDeactivationState::DiscloseStateToCarrier: empty send buffer is not flushed
2017/02/06 03:41:51.127 I/TeamViewer Activating Router carrier
2017/02/06 03:41:51.127 I/RSModuleManager destroy
2017/02/06 03:41:51.128 I/ScreenSharingSDKSession Stopping session
2017/02/06 03:41:51.130 W/TeamViewer UdpConnection[20]: UDP statistics: nb=33
2017/02/06 03:41:51.130 I/SessionIncomingRemoteSupport SessionIncomingRemoteSupport destroyed
2017/02/06 03:41:51.130 I/SessionManager !end session!
2017/02/06 03:41:51.131 I/SessionManager set session is running: false
2017/02/06 03:41:51.134 W/TVWidget widget already removed
2017/02/06 03:41:51.135 I/SessionController close
2017/02/06 03:41:51.135 I/SessionController Release partial wakelock
2017/02/06 03:41:51.136 W/PseudoSocketAdapter read: Socket already closed.
2017/02/06 03:41:51.137 I/BCommandHandler listener thread stopped
2017/02/06 03:41:51.137 W/SessionIncomingRemoteSupport Session already destroyed!
2017/02/06 03:41:51.199 I/TeamViewer TeamViewer is going offline!
2017/02/06 03:41:51.200 I/TeamViewer RemoteSessionManager::ClearAllRemoteSessions(): RemoteSession Count: 2
2017/02/06 03:41:51.211 W/InterProcessGUIConnector Received SessionCommand (SessionCommand ptr=0x62a02db8 rct=12 ct=ConnectionInfo) without registered callback.
2017/02/06 03:41:51.217 I/TeamViewer ConnectionGuard: no restrictions
2017/02/06 03:41:51.218 I/TeamViewer CGatewaySession[18]::EndSession(): Session to 742326611 ended. Estimated capacity=0kBit/s, Latency=3ms
2017/02/06 03:41:51.218 I/TeamViewer CSendCommandToMaster::SendBCommandToMaster: CC=3 CT=37
2017/02/06 03:41:51.294 I/TeamViewer RemoteSessionManager::ClearAllRemoteSessions(): Waited 94ms
2017/02/06 03:41:51.295 I/KeepAlive Offline
2017/02/06 03:41:51.296 I/TeamViewer Account::UpdateState: KA = 0, active = 1
2017/02/06 03:41:51.296 I/TeamViewer Account::SetLoginState: new state: 0
2017/02/06 03:41:51.382 I/TeamViewer TVRouterClock Schedule next request in 0 seconds
2017/02/06 03:41:51.383 W/TeamViewer KeepAliveSessionOutgoing::ConnectEndedHandler(): KeepAliveConnection with server50704.teamviewer.com ended
2017/02/06 03:48:53.041 I/FileManager check storage
2017/02/06 03:48:53.043 I/FileManager copyFilesToExternalStorage: copy TVLog.html