无法在物理设备上运行安装apk,但已安装在模拟器上

问题描述 投票:0回答:1

我是Android Studio和应用程序开发的新手,但我制作了一个简单的应用程序,当从Android Studio运行时,它似乎可以正常安装并正常工作。我有两个模拟器,一个是从Android Studio和VS Android Emulator创建的。该应用程序在Studio中运行时会安装并运行,但在我手动拖放以在VS Android Emulator上安装时并没有运行。而是给出此错误:

Performing Push Install
C:\Users\EDON\AndroidStudioProjects\Starbuzz2\app\build\outputs\apk\debug\app-debug.apk: 1 file pushed, 0 skipped. 0.2 MB/s (2035792 bytes in 10.550s)
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
    pkg: /data/local/tmp/app-debug.apk
Failure [INSTALL_FAILED_TEST_ONLY]

当我也安装在物理设备上时,也会出现App Not Installed错误。

android android-studio android-emulator apk
1个回答
0
投票

因此,在进行了许多搜索之后,我发现我必须对应用程序进行签名。在Android Studio中对应用程序签名后,它已同时安装在模拟器和物理设备上……谢谢大家……

© www.soinside.com 2019 - 2024. All rights reserved.