Но он продолжает бросать эту ошибку, < /p>
Код: Выделить всё
I/PlayCore( 8420): UID: [10378] PID: [8420] AppUpdateService : requestUpdateInfo(com.example.app)
I/PlayCore( 8420): UID: [10378] PID: [8420] AppUpdateService : Initiate binding to the service.
I/PlayCore( 8420): UID: [10378] PID: [8420] AppUpdateService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.installservice.DevTriggeredUpdateService})
I/PlayCore( 8420): UID: [10378] PID: [8420] AppUpdateService : linkToDeath
I/PlayCore( 8420): UID: [10378] PID: [8420] OnRequestInstallCallback : onRequestInfo
I/PlayCore( 8420): UID: [10378] PID: [8420] AppUpdateService : Unbind from service.
W/JavaBinder( 8420): BinderProxy is being destroyed but the application did not call unlinkToDeath to unlink all of its death recipients beforehand. Releasing leaked death recipient: com.google.android.play.core.internal.ac
< /code>
Код, который я использую, есть, < /p>
try {
if (Platform.isAndroid) {
InAppUpdate.checkForUpdate().then((info) {
setState(() {
_updateInfo = info;
});
}).catchError((error) => print(error));
if (_updateInfo?.updateAvailable == true) {
InAppUpdate.performImmediateUpdate()
.catchError((error) => print(error));
}
}
} catch(e) {
print(e);
}
< /code>
После сбоя с приведенным приведенным пакетом количество дней я пытался использовать другой пакет с именем Native_updater. Этот пакет также привел к той же ошибке. Хотя я следовал их примеру, который должен был работать.Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.22.0-10.0.pre.121, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Android Studio (version 4.0)
[✓] Connected device (1 available)
Я использую 64 -битную машину Kali Linux.>
Подробнее здесь: https://stackoverflow.com/questions/639 ... inktodeath
Мобильная версия