I am creating a system service and api on an android source and i compiled and built it. And it ran with no problem on the device. These are the commands I gave.
make update-api
make -j8
This built and ran it on the device. No problem. I wanted to create an app for the system service so I tried to make the sdk.
make sdk -j8
It did not work. I gave lunch command.
lunch sdk-eng
make sdk -j8
Still fails to build. Now this is the error I get at the end.
frameworks/base/core/res/res/xml/storage_list_box.xml:47: error: Error: No resource found that matches the given name (at 'storageDescription' with value '#string/storage_nand_flash').
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
#### make failed to build some targets (01:06 (mm:ss)) ####
This happened twice. And I had to start from scratch. Now I am stuck again. I dont want to start from scratch each time I get this error. Please shed some light on what I might be doing wrong.
Write this command:
source build/envsetup.sh; lunch aosp_arm-eng; make -j8 ; source build/envsetup.sh; lunch sdk-eng; make sdk
And wait patiently.
Related
There could be a problem with my configuration, but I cannot figure out what's wrong. I am trying to get appium set up on a Mac for automated testing.
I am running this command:
./reset.sh --android --verbose
I always fail on this step:
* Building Android bootstrap
Running "buildAndroidBootstrap" task
Fatal error: Error finding ant binary, is it on your path?
---- FAILURE: reset.sh exited with status 1 ----
My path is as follows:
# Android and appium config
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
What am I doing wrong? Is my path missing something crucial? Googling to try and find out what the ant library is hasn't yielded me much results - what is it? Any help appreciated.
Turns out ant is an apache tool, without which reset.sh will fail for Android. Installing ant with brew fixed the problem.
I've recently updated a few dependencies on my mac after a while not doing much cca development and now the "cca run android" command is no longer working on my machine.
I get the following strange error:
BUILD FAILED
<my project path>/platforms/android/build.xml:90: Cannot find /usr/local/tools/ant/build.xml imported from <my project path>/platforms/android/build.xml
Total time: 0 seconds
<my project directory>/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: ant with args: debug,-f,<my project directory>/platforms/android/build.xml,-Dsdk.dir=/usr/local
It's looking for a build file that doesn't exist. I'm concerned about the section that says -Dsdk.dir=/usr/local. Clearly it should be looking at my android home directory, which seems to be set properly:
$ echo $ANDROID_HOME
/usr/local/opt/android-sdk
And if that variable was being set properly, it would find one:
ls $ANDROID_HOME/tools/ant/build.xml
/usr/local/opt/android-sdk/tools/ant/build.xml
Has anyone run into this recently using recent versions of cca with android? Hoping there's some obvious mistake I'm making that can be easily remedied.
I got a response from the MobileChromeApps developers on their github issue tracker. It turns out that the sdk.dir was not being set by the $ANDROID_HOME variable, but instead by the $PATH variable that matches the first android executable. By fixing my path to move $ANDROID_HOME before anything else in the path it fixed the issue, and they filed a bug to prioritize $ANDROID_HOME in a future build.
I’ve installed all components that I could possibly need,
I’ve been on the net for two days and I just can’t find an answer to this question.
I’ve checked my apache ant,
javac,
java JRE, JDK,
Qt Variables and everything is ok.
Qt likes all of my settings apart from when I try to deploy my app to emulator or device I get this error
Issues Output:
:-1: error: [install_itemfolder_01] Error 1
Compile Output :
17:54:43: Running steps for project Test...
17:54:43: Configuration unchanged, skipping qmake step.
17:54:43: Starting: "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe"
mingw32-make: Nothing to be done for 'first'.
17:54:45: The process "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
17:54:45: Starting: "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\\Users\\ryan\\Desktop\\Projects\\Qt c++\\build-Test-Android_for_armeabi_GCC_4_8_Qt_5_2_1-Release\\android-build" install
The system cannot find the path specified.
The system cannot find the path specified.
makefile:1716: recipe for target 'install_itemfolder_01' failed
mingw32-make: *** [install_itemfolder_01] Error 1
17:54:45: The process "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Test (kit: Android for armeabi (GCC 4.8, Qt 5.2.1))
When executing step 'Copy application data'
Is there anyone who can help?
Thanks
I Fixed it.
For the love of life don't put any " " (Spaces) in your application path
get this error
Command failed: ./distribute.sh -m "kivy"
when trying to
$ buildozer android debug deploy run
How to fix it?
thanks
That means something went wrong in the python-for-android build step, but there are tons of problems that would give that error.
Could you set the buildozer token log_level = 2 in your buildozer.spec and try it again (by default it will be 1). This will get buildozer to print much more information about the build process, including hopefully more about the error. Then, could you include that error information here?
i am tying to build a tesseract project to use as a library for my project. I am getting this error with cygwin when trying to build on windows 7 with User Account Controls turned off.
$ /cygdrive/c/android-ndk-r8/ndk-build
SharedLibrary : liblept.so
C:/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/libgnustl_static.a: No such file: Permission denied
collect2: ld returned 1 exit status
/cygdrive/c/android-ndk-r8/build/core/build-binary.mk:369: recipe for target `obj/local/armeabi/liblept.so' failed
make: *** [obj/local/armeabi/liblept.so] Error 1
please let me know what i should do to build the project.
Sorry It's my first time answering a question.
I was having a same issue as yours.
Then I solve it using cygwin bash with command: $ chmod -R 777 /cygdrive/c/android/workspace
C:/Android/workspace is my Eclipse work space.
Some one here gave me the insight
A lot of people have struggled with compiling tesseract under Windows, and Cygwin is normally suggested, however its often not necessary.
Have you tried looking at the tess-two project on github? Its tesseract wrapped with some handy android classes, compiling a running is simply a case of :
git clone git://github.com/rmtheis/tess-two tess
cd tess
cd tess-two
ndk-build
android update project --path .
ant release
I've been able to compile the above on 3 windows7 machines, a mac, and ubuntu without any issues.
if you're developing under windows, go to the file, and change it's premissions to full control.
it will be in /obj dir