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
- 浏览: 2486037 次
- 性别:
- 来自: 成都
最新评论
-
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
相关推荐
Quantitative Trading - How to Build Your Own Algorithmic Trading Business.
https://github.com/iBotPeaches/Apktool
本书是互联网产品经理必读刊物,讲述了如何打造让用户上瘾的产品。
How to Build a Web Dynpro Application
How to build up a high performance team, experts will give you much instructions..
How to Build Blockchain App How to Build Blockchain App
Then they go on to show you how to use it, how to document your designs in Computer-Aided Design programs, and how to output your designs as specifications and tool paths that feed into the CNC ...
Bridging WebML to model-driven engineering: From document type definitions to meta object facility,Meta-models are a prerequisite for model-driven engineering (MDE) in general and consequently for ...
ASP.NET Core 1.1 For Beginners How to Build a MVC Website 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载...
Beowulf集群的简要介绍,适合中小企业和资金不多又需要高速度运算的公司。做简单的搜索网站,在安排硬件和软件环境时也用得上。
Basic Concepts – What’s control in WPF? – Control Principles? – ContentModel – ContentPresenter & ItemsPresenter Build a ColorPicker control
How to build OTA Package
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 ...
Radio-Frequency Identi er (RFID) technology, using the ISO-14443 standard, is becoming increasingly popular, with applications like credit-cards, national-ID cards, E-passports, and physical access ...
how to build your own plugin framework in c++
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
使用Haskell和Monad技术实现一个解释器。又学Monad也学解释器。
How to build chromium on Ubuntu