get error on "buildozer android debug deploy run" - android

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?

Related

Make failed while making sdk after building android source

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.

Building chromium project for Android

I am following the instructions here to build chromium project for android on ubuntu 14.04. I was able to successfully check out the code, now I'm trying to configure the build. I'm using GN to configure, so I run "gn args out/Default", however I get this error: gn.py: Could not find gn executable at: /home/moon/chromium/src/buildtools/linux64/gn
All I have in that above folder is sha1 files, I don't seem to have python files. However, I had not received any errors during checkout process. What am I doing wrong and how can I fix this?
Thanks a lot!
I had the same problem as you but I managed to build Chromium finally.
Most probably, you may not successfully install any necessary dependencies.
Since you are on Linux, run the following command under src:
$ ./build/install-build-deps.sh
After this you can rerun the command:
$ gn gen out/Default
After giving credit to Brett Wilson, run:
gclient runhooks
It worked for me.

kivy buildozer deploy error

I am running "buildozer android deploy" command to install my kivy app in my samsung tablet. (Ubuntu 32 bit)
It work all the time but since yesterday it generate the error below:
I have never edited any of the adb file, thus I don't understand why Syntax error: ")" unexpected.
I try un-install and re-install buildozer but it couldn't help.
anyone have any idea how can I fix it?
# Distribution already compiled, pass.
# Run '/home/user/.buildozer/android/platform/android-sdk-20/platform-tools/adb devices'
# Cwd None
/home/user/.buildozer/android/platform/android-sdk-20/platform-tools/adb: 1: /home/user/.buildozer/android/platform/android-sdk-20/platform-tools/adb: **Syntax error: ")" unexpected
# Command failed: /home/user/.buildozer/android/platform/android-sdk-20/platform-tools/adb devices****
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2**

Appium - reset.sh fails with error on "buildAndroidBootstrap" task on Mac

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.

Calabash-android : rake build error

I am new to calabash-android , i am getting the following error while executing "rake build " command .
C:\calabash-android\ruby-gem>rake build
rake aborted!
cannot load such file -- C:/Ruby193/lib/ruby/gems/1.9.1/gems/popen4-0.1.2/lib/op
en3
lib/calabash-android/helpers.rb:6:in `'
C:/calabash-android/ruby-gem/Rakefile:2:in `load'
C:/calabash-android/ruby-gem/Rakefile:2:in `'
(See full trace by running task with --trace)
These are the steps i have followed
git clone https://github.com/calabash/calabash-android.git
git submodule init
git submodule update
i used gem install popen4
but i again same error
Please help me .
Run the same command, adding --trace at the end, and then post the results, so we have more information available for debugging.
Also, have you tried gem update --system and then gem update popen4? This might solve any issues with the gem.
Why are you trying to build the calabash-android gem itself?
If you don't intend to modify it internally, just install it via gem install calabash-android and you're good to go!

Categories

Resources