I build my app to apk before, but sience few days I can't do build or update for android.
My .buildozer/android/platform/python-for-android is empty, but I don't know if it's a reason? It looks like any command can't work for android, for example:
buildozer android release gives me:
...
id: 3 or "android-19"
Type: Platform
Desc: Android SDK Platform 4.4.2
Revision 3
----------
id: 4 or "android-18"
Type: Platform
Desc: Android SDK Platform 4.3
Revision 2
...
----------
id: 55 or "extra-google-play_licensing"
Type: Extra
Desc: Google Play Licensing Library, revision 2
By Google Inc.
Google Play Licensing client library
Install path: extras/google/play_licensing
----------
id: 56 or "extra-google-webdriver"
Type: Extra
Desc: Google Web Driver, revision 2
By Google Inc.
WebDriver
Install path: extras/google/webdriver
# Android packages installation done.
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/t/py/other/foodapp/.buildozer/android/platform/python-for-android
/bin/sh: 1: ./distribute.sh: not found
# Command failed: ./distribute.sh -l
Try running
buildozer android update
I was having some issues with it building the apk, but after running the clean and then update it worked.
Hey I have two solutions for your problem:
Just remove the .buildozer/ folder in your project and try again
Run the command: buildozer clean
Related
It asks me to mark the location of the sdk file in the adb section of the genymotion emulator.
However, android studio is not installed on my computer. Therefore, there is no Android/sdk file in C:\Users\Win10\AppData\Local. In short, do I have to install android studio to use genymotion emulator in vs code program?
Solve the problem by downloading command tool files and running sdkmanager.bat without using android studio.
You can download the android sdk using command lines tools without the use of android studio
Once installed run the sdkManager in a command line tools. The sdkmanager is a command line tool that allows you to view, install, update, and uninstall packages for the Android SDK.
List installed and available packages
sdkmanager --list [options] \
[--channel=channel_id] // Channels: 0 (stable), 1 (beta), 2 (dev), or 3 (canary)
Use the channel option to include a package from a channel up to and including channel_id. For example, specify the canary channel to list packages from all channels.
Install packages
sdkmanager packages [options]
I downloaded the pydroid 3 app from google play on my samsung tablet. Its amazing. Kivy works beautifully. After setting my spec file, I try to use buildozer, I get a git not found error. I am trying to build a sample android app to make sure the kivy-buildozer setup is complete. I installed gitpython, it didnt help. Thank You
$ cd /storage/emulated/0/sm
/storage/emulated/0/sm
$ buildozer -v android debug
Check configuration tokens
Ensure build layout
Check configuration tokens
Read available permissions from api-versions.xml
Preparing build
Check requirements for android
Run 'dpkg --version'
Cwd None
/data/user/0/ru.iiec.pydroid3/files/sh: dpkg: not found
Search for Git (git)
Git (git) not found, please install it.
/storage/emulated/0/sm $ pip install git
ERROR: Could not find a version that satisfies the requirement git (from versions: none)
ERROR: No matching distribution found for git
I asked the app developer:
Developer response:
Buildozer requires Android SDK that is unavailable on Android. So it won't work independently of git availability.
Hi I am trying to setup Ruboto on my Windows 8 and getting the following error even if say yes to download and install Apache via command prompt. Any help is appreciated
C:\>ruboto setup
Java runtime : Found
Java Compiler : Found
Apache ANT : Not found
Android Package Installer: Not found
Android Emulator : Not found
Intel HAXM : Not found
Android SDK Command adb : Not found
Android SDK Command dx : Not found
Platform SDK android-15 : Not found
!!! Ruboto setup is NOT OK !!!
Apache ANT was not found.
Would you like to download and install it? (Y/n): y
Downloading...
Installing apache-ant-1.9.0-bin.tar.gz...
F, [2014-10-05T09:58:23.048000 #15164] FATAL -- : not in gzip format (Zlib::Gzip
File::Error)
org/jruby/ext/zlib/JZlibRubyGzipReader.java:156:in `initialize'
org/jruby/ext/zlib/JZlibRubyGzipReader.java:85:in `new'
org/jruby/ext/zlib/JZlibRubyGzipReader.java:105:in `open'
download ant your self, and unzip to folder "c:\ant" , and udpate PATH with set PATH=c:\ant\bin;%PATH%" , now rerun ruboto setup
you may want to update your system path in windows, so the next time you open a cmd prompt you dont have to add ant path.
Since yesterday, I have some problems with Cordova and Android. I can not create an functional Android App. iOS works.
In detail: I use a Mac (MacOS X 10.8.5) and have installed ADT 22.6.2 (with API 17/18/19) and added the sdk-tools to my PATH.
$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/adt/sdk/tools:/Applications /adt/sdk/platform-tools:/usr/local/MacGPG2/bin
My configuration:
$ node -v
v0.10.26
$ cordova -v
3.4.1-0.1.0
$ ant -version
Apache Ant(TM) version 1.8.2 compiled on June 20 2012
My attempt to create an Cordova App:
$ cordova create XY com.wb.XY XY
Creating a new cordova project with name "XY" and id "com.wb.XY" at location "/.../XY"
$ cd XY
XY wb$ cordova platform add ios
Creating ios project...
XY wb$ cordova platform add android
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.wb.XY
Name: XY
Android target: android-19
Copying template files...
Running: android update project --subprojects --path "platforms/android" --target android-19 --library "CordovaLib"
Resolved location of library project to: /.../XY/platforms/android/CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'XY'.
If you wish to change it, edit the first line of build.xml.
Added file platforms/android/build.xml
Added file platforms/android/proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file platforms/android/CordovaLib/build.xml
Added file platforms/android/CordovaLib/proguard-project.txt
Project successfully created.
XY wb$ cordova platform list
Installed platforms: android 3.4.0, ios 3.4.1
Available platforms: amazon-fireos, blackberry10, firefoxos
XY wb$ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
Fetching plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git" via git clone
Installing "org.apache.cordova.inappbrowser" for android
Installing "org.apache.cordova.inappbrowser" for ios
XY wb$
What is going wrong? There is no directory „gen“.
If I try to import the project into ADT/Eclipse, I got the message:
Errors occurred during the build.
Errors running builder 'Android Resource Manager' on project 'XY'.
Errors running builder 'Android Pre Compiler' on project 'XY'.
Path must include project and resource name: /XY
and
/XY/gen already exists but is not a source folder. Convert to a source folder or rename it.
Eclipse generates a folder called „gen“, but it is empty.
EDIT: Here is what I tried based on the input given in answers and comments:
I have installed Node.js and Cordova 3.4:
$ node -v
v0.10.26
$ cordova -v
3.4.1-0.1.0
$ ant -version
Apache Ant(TM) version 1.8.2 compiled on June 20 2012
I have done this as you described with CLI.
The Android SDK is in the system path:
$ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/adt/sdk/tools:/Applications/adt/sdk/platform-tools:/usr/local/MacGPG2/bin
Everything seems to be all right. Do you see any mistake? Do I need Apache Ant?
If I try to add android (without sudo), I have got the output shown in my question. Trying this as admin (with sudo), the result is the same.
With
$ cordova emulate android
I get:
...
BUILD SUCCESSFUL
Total time: 5 seconds
WARNING : no emulator specified, defaulting to Android_Tablet
Waiting for emulator...
2014-04-26 14:16:53.848 emulator64-arm[84081:f07] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
emulator64-arm: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
Booting up emulator (this may take a while)........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
It takes a very long time . . . after 15 minutes I broke off. The log at Eclipse shows always returning the same messages.
But with
$ cordova run android
I am able to install and launch the app on my Android-device. But if I try to import the project into Eclipse, the file XY.java is shown with many errors.
Do you have any idea what could be the problem?
I am still able to work with my existing apps (iOS and Android), but I can not create a new one for Android.
I am sharing with you the steps to create android PhoneGap app with cordova 3.4 version :-
1) Download and install Node.js.
2) Run this command on your terminal :-
$ sudo npm install -g cordova
3) Then create your project using following command :-
$ cordova create hello com.example.hello HelloWorld
4) Then before adding any platform , run the following command....Replace the path of android sdk with your system path :-
$ export PATH=${PATH}:/Users/taruna/Documents/adt-bundle-mac-x86_64-20131030/sdk/platform-tools:/Users/taruna/Documents/adt-bundle-mac-x86_64-20131030/sdk/tools
5) Now add your platform using following command :-
$ sudo cordova platform add android
6) Now you can successfully run your project on emulator using following command :-
$ cordova emulate android
And its done now.
`
I've installed Ruboto Gem and been following their wiki on how to proceed; however I keep getting this prompt every time I run the ruboto setup command:
Java runtime : Found
Java Compiler : Found
Apache ANT : Found
Android Package Installer: Found
Android Emulator : Found
Android SDK Command adb : Not found
Android SDK Command dx : Found
Platform SDK android-10 : Found
!!! Ruboto setup is NOT OK !!!
Java runtime : Found
Java Compiler : Found
Apache ANT : Found
Android Package Installer: Found
Android Emulator : Found
Android SDK Command adb : Not found
Android SDK Command dx : Found
Platform SDK android-10 : Found
!!! Ruboto setup is NOT OK !!!
Android tools not found.
Would you like to download and install it? (Y/n):
even after following through with the download and installation, the problem still persists. I had a similar problem with the dx before and I solved it in the PATH; but this one has no solution elsewhere.
Thank you!
re-download the Android SDK, and you would find that file in:
adt-bundle-linux-x86-20130522/sdk/build-tools/android-4.2.2/
$ sg552#youku:/sg552/adt-bundle-linux-x86-20130522/sdk$ ls build-tools/android-4.2.2/
$ aapt aidl dexdump dx lib llvm-rs-cc NOTICE.txt renderscript source.properties
and then, add it to your PATH:
# your ~/.bashrc file or ~/.bash_profile :
PATH=$PATH:$YOUR_ANDROID_HOME/build-tools/android-4.2.2/