How to Build APK and Install APK
First thing, I upgrade my maven to the latest version, so I have problem to build the apk file.
Error Message:
[INFO] --- android-maven-plugin:3.6.0:generate-sources (default-generate-sources) @ google-play-services --- [WARNING] Error injecting: com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2387) at java.lang.Class.getDeclaredFields(Class.java:1796) at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661) at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366) at com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:165) at com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:609) at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:565)
at com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:551)
Solution:
The solution is that the latest version does not mean the best version. So I roll back my maven to 3.0.5 version. It works.
The I try the eclipse related tool to generate the apk file like this.
[Android Tool] —> [Export Signed Android Application]
But when I try to install the APK, I use command.
adb install -r ./LocalpointTester_Android.apk
adb install ./LocalpointTester_Android.apk
If I run the command without -r option, I got Error Message:
Failure [INSTALL_FAILED_ALREADY_EXISTS]
If I run the command with -r option, I got Error Message:
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
Because the signature is different from different developers. So I uninstall the app from the device- application manager.
It works fine then.
And the APK file is automatically generated under [Project Name] —> [bin] directory.
Or we can generate from Menu [ Build ] ——> [Generate Signed APK]
References:
http://stackoverflow.com/questions/17293940/soap-enabler-maven-build-failure
http://maven.apache.org/download.cgi
- 浏览: 2539916 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
https://github.com/iBotPeaches/Apktool
### 量化交易:如何构建自己的算法交易业务 #### 核心知识点概述 本文将深入探讨《量化交易:如何构建自己的算法交易业务》一书中的核心知识点。本书由Ernest P. Chan撰写,作为一位在量化交易领域有着丰富经验的...
How to Build Blockchain App How to Build Blockchain App
Beowulf集群的简要介绍,适合中小企业和资金不多又需要高速度运算的公司。做简单的搜索网站,在安排硬件和软件环境时也用得上。
ASP.NET Core 1.1 For Beginners: How to Build a MVC Website by Jonas Fagerberg English | 19 May 2017 | ASIN: B071VX7KN4 | 411 Pages | PDF | 6.66 MB Want to learn how to build ASP.NET Core 1.1 MVC Web ...
ASP.NET Core 1.1 Web API For Beginners How To Build a Web API ASP.NET Core 1.1 Web API For Beginners How To Build a Web API ASP.NET Core 1.1 Web API For Beginners How To Build a Web API
How to Build Big Data Pipelines for Hadoop
How to build compile server with virtualbox & samba
How to write and publish a scientific paper ContentsChapter 1 What Is Scientific Writing? Chapter 2 Origins of Scientific Writing Chapter 3 What Is a Scientific Paper? Chapter 4 How to Prepare the ...
Microsoft-annie wang-How to build inclusive product
藏经阁-How to Build a Successful Data Lake.pdf
「信息安全」Reiber-How to build resilience to cyberattacks - 安全测试 安全培训 移动安全 区块链 防火墙 AI安全
knowhow220406.apk
Enterprise Cybersecurity Study Guide How to Build a Successful Cyberdefense Program Against Advanced Threats 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国...
In this fast-paced book on the Docker open standards platform for developing, packaging and running portable distributed applications, Deepak Vorhadiscusses how to build, ship and run applications on ...