Issue
Problem
I want to create an android app
- via a
vim&makefileonly - no gradle, no ant, no maven, no android.mk and all other stuff
Why?
It is a high performance C++ code that is wrapped for an android device.
- Ergo, I do not need 99% of gradles services
- 15+ seconds built time via gradle for a small program? That is unacceptable.
- The incorporation of native code in gradle is ridiculous. These gradle guys come up with an experimental ndk plugin that keeps changing syntax.
- I only target ARMv8-A. I will have partly AARCH64 assembler code. And I use a pre-processor m4 that generates
*.cppbefore they get compiled. Can't imagine gradle has something for this.
My Progress
I know that the following steps are REQUIRED:
- Create keystore by
keytoolfrom$JAVA_HOME/bin. - Compile source files via
javacfrom$JAVA_HOME/bin. - Create Dalvik Executables for the device by
dxfrom$ANDROID_HOME/built-tools. - Create the
.apkfile byaaptfrom$ANDROID_HOME/built-tools. - Sign apk package by
jarsignerfrom$JAVA_HOME/bin. - Align apk package by
zipalignfrom$ANDROID_HOME/built-tools. - Install software on phone by
adbfrom$ANDROID_HOME/tools.
The app crashes on startup. Even when I want to create a blank activity.
-
Solution
ok, I figured it out. I placed my sample code on https://github.com/skanti/Android-Manual-Build-Command-Line
Hope it helps you guys too.
Answered By - Armen Avetisyan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.