Android AOSP NDK compilation problem - Android Q&A, Help & Troubleshooting

Hi,
I'm working on a native application that display the chipsetID.
When i test with a simple application HelloWorld and compile using ndk-build, it work and i found the apk under system/bin. But when i include nexus header,it generate errors "File not found" .
Best Regards.

Related

[Problem] AOSP Compile Failed - makefile not found.

Hello. I Try Compile AOSP froyo-relase compile but Make doesn't work. :S
I Downloaded All Zip from github/android/ where is froyo-relase and unpack to once folder (screen) and i give it chmod to 777 but after make i see
"Make file not fount. Stop."
What I Doing wrong?
Screen in Attach
cheqolada said:
Hello. I Try Compile AOSP froyo-relase compile but Make doesn't work. :S
I Downloaded All Zip from github/android/ where is froyo-relase and unpack to once folder (screen) and i give it chmod to 777 but after make i see
"Make file not fount. Stop."
What I Doing wrong?
Screen in Attach
Click to expand...
Click to collapse
There should be a Makefile in the root of your source tree, If it's missing , run this command in the source tree root
Code:
echo "include build/core/main.mk" > Makefile
That will probably get you started!
Thanks
Thanks
now i Have problem with compile Android 2.2.3 - I have Java 1.6 but i need 1.5 so i Cant Start Compile . What Now? I Try to install Java 1.5
cheqolada said:
Thanks
now i Have problem with compile Android 2.2.3 - I have Java 1.6 but i need 1.5 so i Cant Start Compile . What Now? I Try to install Java 1.5
Click to expand...
Click to collapse
Looks like it's your lucky day then
This post covers all things Java - http://forum.xda-developers.com/showpost.php?p=26957072&postcount=4
Doesn't hurt to use the search feature either, It's works really well

Open CM10.1 Source in Eclipse

Hello peeps,
I can't build CM10.1 (maguro) in Eclipse, I got an error from packages/apps/apollo/src/com.andew.utils/RefreshableFragment.java. It's about Fragment class.
Here is the error :
The type android.view.View$OnCreateContextMenuListener cannot be resolved. It is indirectly referenced from required .class files.
And naturally project can't be built :
The project was not built since its build path is incomplete. Cannot find the class file for android.view.View$OnCreateContextMenuListener. Fix the build path then try building this project
However, I can build in command line via brunch, mm, mmm, etc.
I have to fix these issues, because anytime I add something in a string.xml file, R.java is not updated as the project can't be built.
u will have to add all the missing .jar files... else you have an option to just build an app after you compiled the whole rom with
Code:
mmm "project"
command
frapeti said:
u will have to add all the missing .jar files... else you have an option to just build an app after you compiled the whole rom with
Code:
mmm "project"
command
Click to expand...
Click to collapse
Thanks for your answer. Well yes I currently use mm or mmm commands to rebuild the package I am working on.
I wanted to know if there was a more comfortable option. Adding all the jar files is the way to go as you said.
I'll see if I can deal with that, otherwise I'll stay with mm and mmm command lines.

[Q] kdump for Nexus 4

Hi,
Mika Westerberg has implemented kdump for OMAP3430 based arm architecture. I want to use kdump in Nexus 4.
I have config the command line as "root=/sdcard maxcpus=1 [email protected] [email protected] ", then I compile the first kernel and the crash capture kernel.
I also cross compiled the kexec-tools for nexus4. However, when I use the kdump tool, I got the error "Cannot find the start of the core dump". Can anyone help me? Thanks!

dot42 open source Xamarin alternative

dot42 is open source Xamarin alternative. You can create Android app using c#. You can grab latest stable version from official repository https://github.com/dot42/dot42. But developer Olaf Pettersen created many fixes and improvements on it own repository https://github.com/ninjasync/dot42. So I forked it, made some fixes, compiled and generated setup from Olaf repository. You can download it from my gdrive https://goo.gl/jxAHgF
Olaf ported some libraries to work with dot42: MVVM Cross, JSON .NET, OxyPlot etc. Check his repository.
If you have any question about how to compile your own version you can ask here.
Currently android 5.0 is not supported. Apk files not working.
Hi, I have already a game build in C so I can covert it in an apk file with this software? Is it possible? E.g. In one of game's folder there are file like
File ACT
File AIR
File CNS, DEF e SFF
Sent from my LG-D802 using Tapatalk 4 Beta

AOSP modifying / compiling keyboard LatinIME

Hello all! I have downloaded and successfully build the AOSP for marshmallow (android-6.0.1_r79). Than I made some changes to the stockkeyboard (regarding to my other topic, but not relevant here). The file which I modified was this here:
packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java
I compiled the code and it was successfull too. But than I realize I face some problems.
I mounted the system.img and get into the path: /system/app/LatinIME/
I decompiled the app (jadx, apktool) to check if the modification there is available and here is the problem
This APK does not contain any Java sources?! Its just xml regarding to the layout. When I replace my old Stockkeyboard with this one, it is still perfectly working? So I got not clue whats going on.
Question regarding to this topic are:
How can I make a modification to the stock keyboard LatinIME
Building this new AOSP image with the new keyboard
And extracting the new keyboardj(APK) out of this image to install it on my device (Root permissions are of course available)
What I have tryed:
Modyfing the following Java file: packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java
Compiling the complete project (make -j4 and just the keyboard: make -j LatinIME)
Replacing my own keyboard with the modified stock keyboard
My steps are as described not working. The keyboard appears and its working but the modification seems to be missing. Also by decompiling it, there are no Java sources within it.
I am relly glad for any help to this topic! Thank you!

Categories

Resources