当前位置:网站首页>The application could not be installed: INSTALL_FAILED_TEST_ONLY
The application could not be installed: INSTALL_FAILED_TEST_ONLY
2022-06-12 05:38:00 【七月星辰】
开发平台
Android Studio
错误描述
真机编译调试安装的时候,显示安装失败。注意是编译通过但安装失败的情况下。
错误截图

解决方案
第一步:
在Gradle Script文件下的gradle.properties文件中增加如下一句话android.injected.testOnly=false

这里修改东西后会弹出提示(如图中的第四步),一定要点击Sync Now,然后等待下方进度条跑完。没跑完你也是不能重新运行程序的。

第二步:
在app下的manifests文件夹下的AndroidManifest.xml文件下添加如下代码:android:testOnly="false"

最后重新运行代码,代码编译完后手机弹出安装页面即可
边栏推荐
- Select gb28181, RTSP or RTMP for data push?
- 什么是工程预付款
- Analysis of pointer
- 个体工商户是不是法人企业
- Test work summary - performance test related issues
- [JS knowledge] easily understand JS anti shake and throttling
- 44. a digit in a sequence of digits
- Multi thread learning 4. Sleep, wait, yield, join (), ThreadGroup control the running of threads
- WebRTC AEC 流程解析
- 公司注册认缴资金多久
猜你喜欢

公司注册认缴资金多久

Word frequency statistics using Jieba database

16. 最接近的三數之和

Towards End-to-End Lane Detection: an Instance SegmentationApproach

16. 最接近的三数之和

POI, easyexcel framework use

Multi thread learning v. volatile visibility and cache inconsistency, instruction reordering

Is the individual industrial and commercial door a legal person enterprise

38. appearance series

yolov5
随机推荐
[grpc development] go language builds simple server and client
The way to promote software test engineer
按键精灵的简单入门
Codis 3. X expansion and contraction
Introduction to redis cluster
51. reverse order pairs in the array
merge sort
flex/fixed上中下(移动端)
Flex / fixed Upper, Middle and Lower (Mobile end)
Matlab: image rotation and interpolation and comparison of MSE before and after
C language - how to define arrays
March 23, 2021
关于架构(排名不分先后)
GRE protocol details
Simple introduction to key Wizard
基于tensorflow的校园绿植识别
Greenplum [question 05] Greenplum streaming server custom client problem handling (increasing)
Detailed analysis of the 2021 central China Cup Title A (color selection of mosaic tiles)
[machine learning] first day of introduction
16. 最接近的三数之和