Произошла ошибка запуска мобильного клиента unknown failure

I have just installed the Android ADT bundle with the Eclipse IDE.

I have created a Android phone Simulator and I am trying to install and run my first application on it.

Here’s what I see in the Console log

Android Launch!
adb is running normally.
Performing com.example.outlast.MainActivity11 activity launch
Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
Uploading Outlast.apk onto device 'emulator-5554'
Installing Outlast.apk...
Installation error: Unknown failure
Please check logcat output for more details.
Launch canceled!

The application that I am trying to install is almost blank. I have just created a project with a blank activity and I am trying to run it. It is supposed to run according to to the official Android developers page.

I dont know how to look in the logcat output.

How can I solve this problem ?

asked May 2, 2014 at 14:46

Pierre's user avatar

1

I have finally resolved my problem.

I was unable to install any application on the android phone simulator because I had not waited long enough for the Android phone to load, so Eclipse couldn’t install anything on the simulator.

answered May 2, 2014 at 15:23

Pierre's user avatar

PierrePierre

4552 gold badges4 silver badges13 bronze badges

2

Same issue might also happen if you install the application some time back and now you are trying to install from another PC or sometime same PC.

Even though you have un-installed before installing new app, System maintain some data related to application. To overcome this completly unstall the application by using abd command.

adb uninstall my.package.id

Please refer another root cause for same issue. This helped me a lot after spending 5hrs of my time.

Eclipse simply says that «Installation error: Unknown failure» it does not give info on reason for fail in console window

To see what is the error message, install apk via adb command

> adb install app.apk

Then we can see the error message as «Failed to install app.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.myapp.id do not match the previously installed version; ignoring!]»

This helps to understand the issue.

answered Oct 16, 2017 at 12:06

Ashok Reddy Narra's user avatar

1

The best way for me to solve the problem, was to open the terminal and use adb manager to restart the server. I use Mac OSX and this should also work on Windows and on Linux. Go to your sdk->platform-tools folder and use the command to type the following commands:

If you use Mac, then use ./adb instead of adb.

adb kill-server (ENTER)
adb start-server (ENTER)

extra:
use adb devices to check if there are connected devices on your computer, so that you know for sure if adb works fine or not.

After no problems detected, try to unplug your device and press on the play button for installing your app. When you see a window with no devices, then you have to plug your Android device on your computer again and select it to successfully install your app.

answered Jan 10, 2015 at 18:52

Aerial's user avatar

AerialAerial

1,1854 gold badges20 silver badges42 bronze badges

1

You need to change device(emulator) android version to as per the target version.
If still not working, then restart your emulator.

answered May 2, 2014 at 14:58

DUSMANTA's user avatar

2

Guys i had the same issue and used the following way :
(Windows 8 , Eclipse Luna)

1) Changing the ADB connection time out to 1000000ms
2) Use ADBhost 127.0.0.1
3) Changing Method Profiler Buffer Size to 20MB
4) Unchecking the Launcher from Snapshot at AVD Emulator Options.

And of course several restarts xD

answered Oct 12, 2014 at 13:48

ignis's user avatar

ignisignis

111 bronze badge

I am working on windows 8.1 OS and I resolved the same issue by using following steps:

  1. Open the command prompt
  2. Navigate till /platform-tools folder (C:/Sample/sdk/platform-tools/)
  3. Type adb KILL-SERVER and hit enter
  4. Type again adb START-SERVER and hit enter
  5. Close the already opened eclipse and restart
  6. Try executing the android application and it will works

answered Apr 4, 2016 at 12:24

Vishwak's user avatar

In Play store, click left menu — my app and game — all tab — remove your application history — rebuild app

answered Oct 10, 2016 at 3:26

Sỹ Phạm's user avatar

Sỹ PhạmSỹ Phạm

5316 silver badges15 bronze badges

Пытаюсь собрать приложение написаное на cordova через android studio на телефоне с android 9.
При сборке выдает вот такие ошибки:

Unknown failure: Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: io.cordova.hellocordova
at com.android.server.pm.Settings.isOrphaned(Settings.java:4306)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:21583)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:18351)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:737)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:1486)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21824)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2809)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4014)
at android.os.Binder.execTransact(Binder.java:731)
Error while Installing APKs

Как можно это решить? До обновления до android 9 на 8 все собиралось. Режим разработчика включен.

I have just installed the Android ADT bundle with the Eclipse IDE.

I have created a Android phone Simulator and I am trying to install and run my first application on it.

Here’s what I see in the Console log

Android Launch!
adb is running normally.
Performing com.example.outlast.MainActivity11 activity launch
Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
Uploading Outlast.apk onto device 'emulator-5554'
Installing Outlast.apk...
Installation error: Unknown failure
Please check logcat output for more details.
Launch canceled!

The application that I am trying to install is almost blank. I have just created a project with a blank activity and I am trying to run it. It is supposed to run according to to the official Android developers page.

I dont know how to look in the logcat output.

How can I solve this problem ?

asked May 2, 2014 at 14:46

Pierre's user avatar

1

I have finally resolved my problem.

I was unable to install any application on the android phone simulator because I had not waited long enough for the Android phone to load, so Eclipse couldn’t install anything on the simulator.

answered May 2, 2014 at 15:23

Pierre's user avatar

PierrePierre

4552 gold badges4 silver badges13 bronze badges

2

Same issue might also happen if you install the application some time back and now you are trying to install from another PC or sometime same PC.

Even though you have un-installed before installing new app, System maintain some data related to application. To overcome this completly unstall the application by using abd command.

adb uninstall my.package.id

Please refer another root cause for same issue. This helped me a lot after spending 5hrs of my time.

Eclipse simply says that «Installation error: Unknown failure» it does not give info on reason for fail in console window

To see what is the error message, install apk via adb command

> adb install app.apk

Then we can see the error message as «Failed to install app.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.myapp.id do not match the previously installed version; ignoring!]»

This helps to understand the issue.

answered Oct 16, 2017 at 12:06

Ashok Reddy Narra's user avatar

1

The best way for me to solve the problem, was to open the terminal and use adb manager to restart the server. I use Mac OSX and this should also work on Windows and on Linux. Go to your sdk->platform-tools folder and use the command to type the following commands:

If you use Mac, then use ./adb instead of adb.

adb kill-server (ENTER)
adb start-server (ENTER)

extra:
use adb devices to check if there are connected devices on your computer, so that you know for sure if adb works fine or not.

After no problems detected, try to unplug your device and press on the play button for installing your app. When you see a window with no devices, then you have to plug your Android device on your computer again and select it to successfully install your app.

answered Jan 10, 2015 at 18:52

Aerial's user avatar

AerialAerial

1,1854 gold badges20 silver badges42 bronze badges

1

You need to change device(emulator) android version to as per the target version.
If still not working, then restart your emulator.

answered May 2, 2014 at 14:58

DUSMANTA's user avatar

2

Guys i had the same issue and used the following way :
(Windows 8 , Eclipse Luna)

1) Changing the ADB connection time out to 1000000ms
2) Use ADBhost 127.0.0.1
3) Changing Method Profiler Buffer Size to 20MB
4) Unchecking the Launcher from Snapshot at AVD Emulator Options.

And of course several restarts xD

answered Oct 12, 2014 at 13:48

ignis's user avatar

ignisignis

111 bronze badge

I am working on windows 8.1 OS and I resolved the same issue by using following steps:

  1. Open the command prompt
  2. Navigate till /platform-tools folder (C:/Sample/sdk/platform-tools/)
  3. Type adb KILL-SERVER and hit enter
  4. Type again adb START-SERVER and hit enter
  5. Close the already opened eclipse and restart
  6. Try executing the android application and it will works

answered Apr 4, 2016 at 12:24

Vishwak's user avatar

In Play store, click left menu — my app and game — all tab — remove your application history — rebuild app

answered Oct 10, 2016 at 3:26

Sỹ Phạm's user avatar

Sỹ PhạmSỹ Phạm

5316 silver badges14 bronze badges

Эта проблема возникла сегодня при отладке мобильного телефона:

Unknown failure (at android.os.Binder.execTransact(Binder.java:565))Error while Installing APKs

Когда он запущен, появляется запрос, примерно означающий: удалить и удалить существующее приложение, нужно ли удалить существующее приложение, нажмите ОК, появится следующая ошибка

Исходное приложение не было удалено, а затем я вручную удалил его и очистил память, и результат был таким же, когда я запустил его снова. Я думал, что это проблема с моим компьютером, но я тестировал его на другом компьютере. Это было немного неудобно. Позже я проверил информацию и протестировал ее. , Этот метод все еще работает

File —>  Settings —> Build,Execution,Deployment —> Instant Run

Удалите опцию Enable Instant Run to и запустите ее снова, чтобы пройти

После выполнения этих операций вам будет любопытно, почему эту операцию можно пропустить? Потом пошел посмотреть общий смысл InstantRun:
Android Studio 2.0 начала внедрять InstantRun, который в основном используется для сокращения времени на обновление приложения во время выполнения и отладки. Хотя выполнение первой сборки может занять немного больше времени, InstantRun может отправить обновленный контент на устройство без пересборки нового apk, чтобы мы могли быстро наблюдать за изменениями. Примечание. InstantRun поддерживает только Gradle версии 2.0.0 или выше и minSdkVersion 15 или выше, настроенные в файле build.gralde. Для лучшего использования установите minSdkVrsion выше 21.
В проектах Android Stuido, использующих Gralde 2.0.0 и более поздних версий, по умолчанию используется Instant Run.

Как исправить ошибку ( "cmd package install-create -r -t -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package" ) при запуске эмулятора.

    'cmd package install-create -r -t  -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package'

20:20 Сессия «приложение»: установка не удалась. Установка не удалась Повторить

6 ответов

1- Закройте свой эмулятор

2- Зайдите в AVD Manager

enter image description here

3- Щелкните стрелку вниз рядом с вашим эмулятором -> холодная загрузка сейчас

cold boot now


7

Shady Mohamed Sherif
13 Янв 2022 в 14:32

Я предлагаю вам снова запустить приложение. У меня тоже была аналогичная проблема, но когда я снова запустил приложение, проблемы были исправлены. Если это не решит проблему, создайте новую рекламу и начните запускать на ней свое приложение.


0

Gajendra Pandeya
16 Окт 2019 в 21:51

Попробуйте выполнить следующие действия:

  1. Закройте эмулятор
  2. Приложение холодной загрузки
  3. Чистая сборка
  4. Открыть эмулятор
  5. Запустить приложение


12

chia yongkang
11 Ноя 2019 в 04:08

У меня была такая же проблема. Вот что я сделал.

  1. Принудительно выйдите из эмулятора.
  2. Перейдите в Android Studio, нажмите AVD Manager.
  3. В столбце действий (последний столбец) щелкните стрелку вниз.
  4. Щелкните «Холодная загрузка сейчас».
  5. Снова запустите код из Android Studio. Все должно работать нормально.

Обычно это происходило из-за зависания эмулятора из-за того, что ноутбук надолго уходит в спящий режим.


8

Azlan Jamal
9 Сен 2020 в 17:05

Убедитесь, что запущено несколько экземпляров эмулятора. Я получил эту ошибку, когда у меня было запущено 2 экземпляра эмулятора.


0

Naveen Singh
5 Фев 2021 в 04:11

Это не твоя вина. Проблема в функционале эмулятора.

ТАК,

Закройте эмулятор.

Перейдите в диспетчер AVD и отредактируйте Quick Boot виртуального устройства на Cold Boot.


31

Dasun wijesundara
29 Июн 2020 в 22:01

Описание ошибки

Все подключил, все настроил, но, если на устройстве нет мобильной платформы — ЕДТ не устанавливает ее а выдает ошибку

Как воспроизвести

Удалить на телефоне мобильную платформу
Попробовтаь установить ее через ЕДТ

Скриншоты

No response

Ожидаемое поведение

На телефон должна установиться платформа

Лог рабочей области

com._1c.g5.v8.dt.platform.services.mobile.MobileDeviceException: Unknown failure
	at com._1c.g5.v8.dt.internal.platform.services.mobile.android.AndroidFileSystemSupport.installLocalPackage(AndroidFileSystemSupport.java:96)
	at com._1c.g5.v8.dt.internal.platform.services.mobile.android.AndroidApplicationLauncher.deployRuntime(AndroidApplicationLauncher.java:77)
	at com._1c.g5.v8.dt.internal.platform.services.mobile.android.AndroidApplicationLauncher.deployRuntime(AndroidApplicationLauncher.java:1)
	at com._1c.g5.v8.dt.internal.launching.mobile.launchconfigurations.MobileApplicationLaunchDelegate.doLaunch(MobileApplicationLaunchDelegate.java:130)
	at com._1c.g5.v8.dt.debug.core.launchconfigurations.CustomErrorHandlingLaunchDelegate.launch(CustomErrorHandlingLaunchDelegate.java:56)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:803)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Версия 1С:EDT

2021.2.10

Операционная система

Windows

Установленные плагины

No response

Дополнительная информация

Android 10
adb через wifi
Права все дал, на установку приложение, через adb install все ставится корректно

Я использую Angular 4 HttpClient для отправки запросов на внешнюю службу. Это очень стандартная настройка:

this.httpClient.get(url).subscribe(response => {
  //do something with response
}, err => {
  console.log(err.message);
}, () => {
  console.log('completed');
}

Проблема в том, что когда запрос не работает, я вижу общий Http failure response for (unknown url): 0 Unknown Error сообщение об Http failure response for (unknown url): 0 Unknown Error в консоли. Между тем, когда я проверяю неудавшийся запрос в chrome, я вижу, что статус ответа — 422, а на вкладке «Предварительный просмотр» я вижу фактическое сообщение о причине возникновения ошибки.

Как получить доступ к фактическому ответному сообщению, которое я вижу в инструментах хром-dev?

Вот скриншот, демонстрирующий проблему: enter image description here

Ответ 1

Проблема была связана с CORS. Я заметил, что в консоли Chrome появилась еще одна ошибка:

В запрошенном ресурсе нет заголовка «Access-Control-Allow-Origin». Происхождение ‘ http://localhost: 4200 ‘, следовательно, не допускается. В ответе был код статуса 422.

Это означает, что ответ с сервера backend отсутствовал в заголовке Access-Control-Allow-Origin хотя backend nginx был настроен для добавления этих заголовков в ответы с директивой add_header.

Однако эта директива добавляет только заголовки, когда код ответа 20X или 30X. При ответах об ошибках заголовки отсутствовали. Мне нужно было always использовать параметр, чтобы убедиться, что заголовок добавлен независимо от кода ответа:

add_header 'Access-Control-Allow-Origin' 'http://localhost:4200' always;

Когда бэкэнд был правильно настроен, я смог получить доступ к фактическому сообщению об ошибке в Угловом коде.

Ответ 2

работая для меня после отключения расширения блока объявлений в chrome, эта ошибка появляется иногда из-за того, что блокирует http в браузере

enter image description here

Ответ 3

В случае, если кто-то еще окажется потерянным, как я… Мои проблемы были не из-за CORS (у меня полный контроль над сервером (ами), и CORS был настроен правильно!).

Моя проблема заключалась в том, что я использую платформу Android уровня 28, которая по умолчанию отключает сетевые коммуникации в открытом тексте, и пыталась разработать приложение, которое указывает на IP моего ноутбука (на котором запущен сервер API). Базовый URL-адрес API выглядит примерно так: http://[LAPTOP_IP]: 8081. Поскольку это не https, Android WebView полностью блокирует сетевой переход между телефоном/эмулятором и сервером на моем ноутбуке. Чтобы это исправить:

Добавить конфигурацию безопасности сети

Новый файл в проекте: resources/android/xml/network_security_config.xml

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
  <!-- Set application-wide security config -->
  <base-config cleartextTrafficPermitted="true"/>
</network-security-config>

ПРИМЕЧАНИЕ: Это следует использовать осторожно, так как оно разрешит весь открытый текст из вашего приложения (ничто не заставит использовать https). Вы можете ограничить его, если хотите.

Ссылка на конфигурацию в основном config.xml

<platform name="android">
    ...
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
        <application android:networkSecurityConfig="@xml/network_security_config" />
    </edit-config>
    <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
    ....
</platform>

Вот оно! Оттуда я восстановил APK, и теперь приложение могло общаться как с эмулятора, так и с телефона.

Больше информации о сети сек: https://developer.android.com/training/articles/security-config.html#CleartextTrafficPermitted

Ответ 4

Если вы, ребята, используете ядро .net, приведенное ниже, этот шаг может вам помочь!

Более того, это не Angular или другая ошибка запроса в вашем приложении FrontEnd

Сначала ребята должны добавить пакет Microsoft CORS от Nuget. Если ваши ребята не добавлены в ваше приложение, следуйте команде установки.

Install-Package Microsoft.AspNetCore.Cors

Затем вам нужно добавить службы CORS. В файле startup.cs в вашем методе ConfigureServices должно быть что-то похожее на следующее:

public void ConfigureServices(IServiceCollection services)
{
    services.AddCors();
}

Затем вам нужно добавить промежуточное программное обеспечение CORS в ваше приложение. В вашем startup.cs у вас должен быть метод Configure. Вы должны иметь это похоже на это:

public void Configure(IApplicationBuilder app, IHostingEnvironment env, 
ILoggerFactory loggerFactory)
{
    app.UseCors( options => 
    options.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
    app.UseMvc();
}

Параметры lambda — это свободный API, поэтому вы можете добавлять/удалять любые дополнительные функции, которые вам нужны. На самом деле вы можете использовать опцию «AllowAnyOrigin», чтобы принять любой домен, но я настоятельно рекомендую вам не делать этого, так как он открывает вызовы из любого источника. Вы также можете ограничить вызовы из разных источников для их HTTP-метода (GET/PUT/POST и т.д.), Чтобы вы могли выставлять только вызовы GET между доменами и т.д.

Спасибо, ты сатиш (сел)

Ответ 5

Для меня это было вызвано серверной стороной JsonSerializerException.

Произошло необработанное исключение при выполнении запроса. Newtonsoft.Json.JsonSerializationException: обнаружен самоссылающийся цикл с типом…

Клиент сказал:

POST http://localhost:61495/api/Action net::ERR_INCOMPLETE_CHUNKED_ENCODING
ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …}

Упрощение типа ответа за счет устранения петель решило проблему.

Ответ 6

Эта ошибка произошла для меня в Firefox, но не в Chrome при разработке локально, и это оказалось вызвано тем, что Firefox не доверял моему локальному сертификату API ssl (что неверно, но я добавил его в свой локальный магазин cert, который позволяет хром доверять ему, но не ff). Исправлена проблема с прямым доступом к API и добавлением исключения в Firefox.

Ответ 7

Если вы используете Laravel в качестве Backend, а затем отредактируйте файл.htaccess, просто вставив этот код, чтобы решить проблему CROS в вашем проекте Angular или IONIC

Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"

Ответ 8

Подобная ошибка может произойти, если вы не предоставили действительный сертификат клиента и токен, который понимает ваш сервер:

Ошибка:

Ответ об ошибке Http для (неизвестный url): 0 Неизвестная ошибка

Пример кода:

import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { catchError, map } from 'rxjs/operators';

class MyCls1 {

  constructor(private http: HttpClient) {
  }

  public myFunc(): void {

    let http: HttpClient;

    http.get(
      'https://www.example.com/mypage',
      {
        headers:
          new HttpHeaders(
            {
              'Content-Type': 'application/json',
              'X-Requested-With': 'XMLHttpRequest',
              'MyClientCert': '',        // This is empty
              'MyToken': ''              // This is empty
            }
          )
      }
    ).pipe( map(res => res), catchError(err => throwError(err)) );
  }

}

Обратите внимание, что и MyClientCert & MyToken — это пустые строки, поэтому ошибка.
MyClientCert & MyToken может быть любым именем, которое понимает ваш сервер.

Ответ 9

Я использую ASP.NET SPA Extensions, который создает мне прокси на портах 5000 и 5001, которые проходят через Angular port 4200 во время разработки.

У меня была правильная настройка CORS для порта https 5001, и все было хорошо, но я случайно попал в старую закладку, которая была для порта 5000. Затем неожиданно это сообщение возникло. Как говорили другие в консоли, было сообщение об ошибке «предполетное».

Поэтому, независимо от вашей среды, если вы используете CORS, убедитесь, что у вас есть все порты, указанные в качестве хоста и порта.

Ответ 10

Я не так стара, как другие вопросы, но я просто боролся с этим в приложении Ionic-Laravel, и отсюда ничего не работает (и других сообщений), поэтому я установил https://github.com/barryvdh/laravel-cors дополнение в Laravel и начал, и он работает очень хорошо.

Ответ 11

Мой был вызван недействительными отношениями в моделях, которые я пытался запросить. Выяснилось, отлаживая ответ, который он разбил на отношение.

Ответ 12

Если у вас есть правильный заголовок cors. Ваша корпоративная сеть может быть отключена от заголовка cors. Если веб-сайт доступен извне, попробуйте получить доступ к нему из-за пределов сети, чтобы убедиться, что сеть вызывает эту проблему — хорошая идея, независимо от причины.

Ответ 13

Я получал это точное сообщение всякий раз, когда мои запросы занимали более 2 минут. Браузер отключится от запроса, но запрос на бэкэнде продолжался до его завершения. Сервер (в моем случае ASP.NET Web API) не обнаружил разрыв соединения.

После целого дня поиска я наконец-то нашел этот ответ, объяснив, что если вы используете конфигурацию прокси-сервера, по умолчанию время ожидания составляет 120 секунд (или 2 минуты).

Таким образом, вы можете отредактировать конфигурацию прокси и установить для нее все, что вам нужно:

{
  "/api": {
    "target": "http://localhost:3000",
    "secure": false,
    "timeout": 6000000
  }
}

Теперь я использовал agentkeepalive, чтобы заставить его работать с проверкой подлинности NTLM, и не знал, что тайм-аут агента не имеет никакого отношения к тайм-ауту прокси, поэтому оба должны быть установлены. Мне потребовалось некоторое время, чтобы понять это, поэтому вот пример:

const Agent = require('agentkeepalive');

module.exports = {
    '/api/': {
        target: 'http://localhost:3000',
        secure: false,
        timeout: 6000000,          // <-- this is needed as well
        agent: new Agent({
            maxSockets: 100,
            keepAlive: true,
            maxFreeSockets: 10,
            keepAliveMsecs: 100000,
            timeout: 6000000,      // <-- this is for the agentkeepalive
            freeSocketTimeout: 90000
        }),
        onProxyRes: proxyRes => {
            let key = 'www-authenticate';
            proxyRes.headers[key] = proxyRes.headers[key] &&
                proxyRes.headers[key].split(',');
        }
    }
};

Ответ 14

Если вы используете Laravel в качестве Backend, а затем отредактируйте файл Controller в проекте laravel, просто вставив этот код в функцию конструктора, чтобы решить проблему CROS в вашем проекте Angular или IONIC

public function __construct(){
    header('Access-Control-Allow-Origin: *'); //just add this line
}

Ответ 15

Моя ошибка состояла в том, что файл был слишком большим (ядро dotnet, кажется, имеет ограничение @~ 25Mb). настройка

  • maxAllowedContentLength до 4294967295 (максимальное значение uint) в web.config
  • украшать действие контроллера с помощью [DisableRequestSizeLimit]
  • services.Configure(options => {options.MultipartBodyLengthLimit = 4294967295;}); в Startup.cs

решил проблему для меня.

Ответ 16

Ну, я испытал ту же ошибку, после поиска всех комментариев здесь, ничего не помогло. Наконец, выясняется, что мой сервер узлов не работал.

Fix'Unknown failure: cmd: Can't find service: package' in Android Studio

You may have created an amazing android app using android studio after spending hours of time or even days, now you want to test your app on a virtual android device (AVD). You are so excited.

But everything gets ruined when you see an error saying ” ‘cmd package install-create -r -t -S 1699739′ returns error ‘Unknown failure: cmd: Can’t find service: package‘ “, now you may have already spent a lot of time trying different things to fix this but you couldn’t and became very disappointed.

But no worries, here we are to help you fix the issue ” ‘cmd package install-create -r -t -S 1699739’ returns error ‘Unknown failure: cmd: Can’t find service: package’ ” while trying to start the emulator. This problem is from the emulator device, it got frozen!

Fixing ‘Unknown failure: cmd: Can’t find service: package’

Follow the steps below to fix this error:

  • First of all, Open your AVD manager.
  • Then choose your virtual device and on the right side you will find an Arrow down
  • Click on that arrow
  • Then Click ‘Cold Boot Now
  • Wait For a Few seconds

Fina Words

If you are still facing the same or not being able to understand the instructions then please follow the same shown in the video above. Any other issues? Let us know in the comment box, we will reach you as soon as possible. Don’t forget to share and react to show what you felt about this quick fix! Thanks

Я столкнулся с этой проблемой, я уже удалил apk, теперь я использую Android Studio 3.0 для запуска apk для Xiaomi MIX 2 (Android 7.1.1, API 25), но это не удалось.

$ adb shell pm install -t -r "/data/local/tmp/com.package"
Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]

И Android Studio сообщает мне: «Возможно, эта проблема устранена путем удаления существующей версии apk, если она присутствует, а затем повторной установки». но я удалил этот apk.

Изображение 119336

И я нажимаю кнопку «ОК», но также не удалось.

$ adb shell pm uninstall com.package
Unknown failure (at android.os.Binder.execTransact(Binder.java:565))
Error while Installing APK

И, наконец, я нахожу, как решить эту проблему, я не включаю «Проверка приложений через USB», потому что теперь это устройство не может включить его, пока вы не войдете в учетную запись xiaomi, и это новое устройство, которое не вошло в систему.

Шаг 1: Перейдите в «Настройка» → найдите «Параметры разработчика» в Системе и нажмите.

Шаг 2: ВКЛЮЧИТЕ «Проверка приложений через USB» в разделе Debbuging.

Шаг 3. Попробуйте «Запустить приложение» в Android Studio снова!

How To Fix ‘Unknown failure: cmd: Can’t find service: package’ Easily in Android Studio

Are you getting an error saying ‘Unknown failure: cmd: Can’t find service: package’?

Developing an Android app can be an exciting journey for any developer. After spending hours or even days creating an app using Android Studio, you may want to test it on a virtual Android device (AVD) to ensure it runs correctly. However, there are times when things don’t go as planned, and you may encounter errors while trying to start the emulator. One of the most frustrating errors that developers encounter while testing their apps on the emulator is the “‘cmd package install-create -r -t -S 1699739′ returns error ‘Unknown failure: cmd: Can’t find service: package‘” error.

This error message can be particularly daunting for developers who have invested a lot of time and effort into building their apps. It can leave you feeling stuck and unsure of what to do next. You may have already tried several solutions to fix the error, but nothing seems to work, adding to your frustration.

If you’re experiencing this ‘Unknown failure: cmd: Can’t find service: package’ error, you’re not alone. Many developers face the same issue while testing their apps on the emulator. The good news is that this error can be resolved, and you can continue developing your app without any further interruptions.

In this article, we’ll guide you through the process of fixing the “Unknown failure: cmd: Can’t find service: package” error, so you can get back to your app development journey.

Table of Contents

YouTube Video On Fixing ‘Unknown failure: cmd: Can’t find service: package’:

You can either watch this video to understand the steps better or follow the steps provided below.

Steps to fix ” ‘cmd package install-create -r -t -S 1699739′ returns error ‘Unknown failure: cmd: Can’t find service: package‘ ” error

To fix this issue follow the steps below:

  1. Open the AVD manager: To begin, open the AVD manager in Android Studio. You can find it in the toolbar at the top of your Android Studio screen, under the “Tools” menu.
  2. Select your virtual device: Once you have the AVD manager open, select your virtual device from the list of available devices in the AVD manager.
  3. Click on the down arrow icon: Look for the down arrow icon located on the right side of your virtual device and click on it.
  4. Choose “Cold Boot Now”: In the dropdown menu, click on the “Cold Boot Now” option to initiate a cold boot.
  5. Wait for the virtual device to start: Wait for a few seconds for the virtual device to start.
  6. Congratulations! After the virtual device has started, the error should be resolved, and you can continue testing your app on the emulator.

Conclusion

In conclusion, the ” ‘cmd package install-create -r -t -S 1699739′ returns error ‘Unknown failure: cmd: Can’t find service: package‘ ” error is a common issue that can occur when testing an app on the Android emulator. This error is caused by the emulator device freezing and can be frustrating for developers who have invested time and effort into building their apps.

In this article, we have provided a simple solution to fix this error. By following the steps we’ve outlined, you can quickly resolve the issue and continue developing your app without any further interruptions. Simply open the AVD manager, select your virtual device, click on the arrow button, and then click “Cold Boot Now.” This will restart the emulator device and fix the error.

It’s worth noting that there can be several other reasons why you may encounter errors while testing your app on the emulator. If the “Unknown failure: cmd: Can’t find service: package” error persists, you may want to try other solutions such as deleting and recreating the virtual device, updating Android Studio, or installing the latest version of the emulator.

In the end, it’s essential to remember that errors are a part of the development process, and encountering them doesn’t mean you’ve failed. Instead, it’s an opportunity to learn and grow as a developer. By following the steps we’ve outlined in this article, you can quickly fix the “Unknown failure: cmd: Can’t find service: package” error and get back to creating your amazing Android app.

Don’t forget to share this solution with your other friends and let us know if this tutorial fixed your issue or not!

Описание ошибки

Все подключил, все настроил, но, если на устройстве нет мобильной платформы — ЕДТ не устанавливает ее а выдает ошибку

Как воспроизвести

Удалить на телефоне мобильную платформу
Попробовтаь установить ее через ЕДТ

Скриншоты

No response

Ожидаемое поведение

На телефон должна установиться платформа

Лог рабочей области

com._1c.g5.v8.dt.platform.services.mobile.MobileDeviceException: Unknown failure
	at com._1c.g5.v8.dt.internal.platform.services.mobile.android.AndroidFileSystemSupport.installLocalPackage(AndroidFileSystemSupport.java:96)
	at com._1c.g5.v8.dt.internal.platform.services.mobile.android.AndroidApplicationLauncher.deployRuntime(AndroidApplicationLauncher.java:77)
	at com._1c.g5.v8.dt.internal.platform.services.mobile.android.AndroidApplicationLauncher.deployRuntime(AndroidApplicationLauncher.java:1)
	at com._1c.g5.v8.dt.internal.launching.mobile.launchconfigurations.MobileApplicationLaunchDelegate.doLaunch(MobileApplicationLaunchDelegate.java:130)
	at com._1c.g5.v8.dt.debug.core.launchconfigurations.CustomErrorHandlingLaunchDelegate.launch(CustomErrorHandlingLaunchDelegate.java:56)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:803)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Версия 1С:EDT

2021.2.10

Операционная система

Windows

Установленные плагины

No response

Дополнительная информация

Android 10
adb через wifi
Права все дал, на установку приложение, через adb install все ставится корректно

Пытаюсь собрать приложение написаное на cordova через android studio на телефоне с android 9.
При сборке выдает вот такие ошибки:

Unknown failure: Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: io.cordova.hellocordova
at com.android.server.pm.Settings.isOrphaned(Settings.java:4306)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:21583)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:18351)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:737)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:1486)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21824)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2809)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4014)
at android.os.Binder.execTransact(Binder.java:731)
Error while Installing APKs

Как можно это решить? До обновления до android 9 на 8 все собиралось. Режим разработчика включен.

  • Произошла ошибка запуска восстановления системы
  • Произошла ошибка загрузки файлов налоговая 3 ндфл
  • Произошла ошибка загрузки файлов nalog ru
  • Произошла ошибка загрузки файла код проблемы sd 116 null
  • Произошла ошибка загрузки ресурсов либо ошибка сети genshin impact 9908