Hum how about installing Jetbrains Android studio (via the jetbrains
toolbox
https://www.jetbrains.com/toolbox-app/)
Csányi Pál <csanyipal@gmail.com> ezt írta (időpont: 2025. máj. 20., K, 11:13):
Hi,
on the Debian 12 Bookworm operating system I want to make android apps.
I would follow the advice on these websites: https://wiki.debian.org/AndroidTools
and
https://wiki.debian.org/AndroidTools/IntroBuildingApps
Following the latter web page, the following command cannot be
executed on Debian 12:
apt install android-sdk-platform-23
because no such package is in the repository!
So, what can I do to achieve my goal?> How can I solve this problem
So, following the
https://wiki.debian.org/AndroidTools/IntroBuildingApps page, I skipped
the installation of the android-sdk-platform-23 package, because it is
not in the package repository.
But I ran the following commands:
$ mkdir ~/Git
$ cd ~/Git
$ git clone https://gitlab.com/Matrixcoffee/hello-world-debian-android.git
$ cd hello-world-debian-android
$ make
and when I ran make I got the following error message:
aapt package -f -m -J src -S res -M AndroidManifest.xml -I /usr/lib/android-sdk/platforms/android-23/android.jar
asset W 05-20 10:57:00 68768 68768 Asset path /usr/lib/android-sdk/platforms/android-23/android.jar is neither a
directory nor file (type=1).
ERROR: Asset package include '/usr/lib/android-sdk/platforms/android-23/android.jar' not found.
make: *** [Makefile:31: src/coffee/source/helloworld/R.java] Error 1
Well, then, what is the solution to this problem?
It is important that I follow the goal stated on the above website:
"building an Android app using only Android SDK and development tools
already available in Debian."
You're really making your life much harder by not using Android Studio, but if you really want, here are some pointers (untested):
- The mentioned packages are available in unstable (and oldstable), but they're very old, so I wouldn't bother.
- You can download the platform tools directly from https://developer.android.com/tools/releases/platform-tools , and from there download a SDK.
Hi,
on the Debian 12 Bookworm operating system I want to make android
apps.
I would follow the advice on these websites: https://wiki.debian.org/AndroidTools
and
https://wiki.debian.org/AndroidTools/IntroBuildingApps
Following the latter web page, the following command cannot be
executed on Debian 12:
apt install android-sdk-platform-23
because no such package is in the repository!
So, what can I do to achieve my goal?
How can I solve this problem?
--
Best wishes by Pál Csányi!
<tomas@tuxteam.de> ezt írta (időpont: 2025. máj. 20., K, 14:35):
On Tue, May 20, 2025 at 02:01:34PM +0200, Csányi Pál wrote:Thank you very much, there is now a little progress here!
Csányi Pál <csanyipal@gmail.com> ezt írta (időpont: 2025. máj. 20., K, 11:13):You are obviously missing one or more packages. In this thread,
Hi,So, following the
on the Debian 12 Bookworm operating system I want to make android apps. >>>>
I would follow the advice on these websites:
https://wiki.debian.org/AndroidTools
and
https://wiki.debian.org/AndroidTools/IntroBuildingApps
Following the latter web page, the following command cannot be
executed on Debian 12:
apt install android-sdk-platform-23
because no such package is in the repository!
So, what can I do to achieve my goal?> How can I solve this problem
https://wiki.debian.org/AndroidTools/IntroBuildingApps page, I skipped
the installation of the android-sdk-platform-23 package, because it is
not in the package repository.
But I ran the following commands:
$ mkdir ~/Git
$ cd ~/Git
$ git clone https://gitlab.com/Matrixcoffee/hello-world-debian-android.git >>> $ cd hello-world-debian-android
$ make
there were some hints on how to find out which.
and when I ran make I got the following error message:I'd try installing one or more of the packages you see when doing
aapt package -f -m -J src -S res -M AndroidManifest.xml -I
/usr/lib/android-sdk/platforms/android-23/android.jar
asset W 05-20 10:57:00 68768 68768 Asset path
/usr/lib/android-sdk/platforms/android-23/android.jar is neither a
directory nor file (type=1).
ERROR: Asset package include
'/usr/lib/android-sdk/platforms/android-23/android.jar' not found.
make: *** [Makefile:31: src/coffee/source/helloworld/R.java] Error 1
"apt search android-platform". That said, apt-file-search doesn't
find a file named "android.jar", so there might be something else
amiss.
My hunch is that the "-23" in your package name hints at a version
number which might be obsolete. But I don't know.
I found several packages in the debian package repository:
...
google-android-platform-21-installer/stable 21+r2.1675172738 all google-android-platform-22-installer/stable 22+r2.1675172738 all google-android-platform-23-installer/stable 23+r3.1675172738 all google-android-platform-24-installer/stable 24+r2.1675172738 all
...
and of course I installed the
google-android-platform-23-installer/stable 23+r3.1675172738 all
debian package .
Now the make command above will find the android.jar file,
but I get another error message:
make: /usr/lib/android-sdk/build-tools/debian/dx: No such file or directory . So I must install google-android-build-tools-23.0.3-installer debian
package too.
To run make successfully, I just had to change the apksigner command
to the signapk command, since the apksigner package is no longer in
the debian package repository.
What remains is to edit the Makefile so that the signapk can do its job.
Then I hope I can successfully create this apk file.
Thank you all very much for your help!
The only reason I wouldn't use Android Studio is because my hardware
doesn't have enough RAM: I need at least 32GB, and I only have 6GB.
On 2025-05-20, debian-user@howorth.org.uk
<debian-user@howorth.org.uk> wrote:
It seems you've encountered an obsolete wiki page (at the bottom it
says "AndroidTools/IntroBuildingApps (last modified 2022-10-31
14:03:10)" ). The subject is being discussed in another thread at
the moment, but you can edit the wiki page to bring it up to date
if you wish. See https://wiki.debian.org/Teams/DebianWiki
Up to date. I wonder what that could mean?
/s
and I can't figure out how to get the dx command, because on my Debian Bookworm system there is no such command!
Can this problem be solved so that I can access on my system only
Android SDK and development tools already available in Debian?
My hunch is that the "-23" in your package name hints at a version
number which might be obsolete. But I don't know.
But dx is still packaged for Debian, it's part of the dalvik-exchange package,
https://fekir.info/post/how-to-assemble-an-android-program/
I see, but when I install, say, the Google's Android SDK Build-Tools
23.0.1 Installer (aapt, aidl, dexdump, dx) package, then apt, or
Synaptic package manager will remove the following debian packages:
On 2025-05-20 at 14:40 +0200, tomas@tuxteam.de wrote:
My hunch is that the "-23" in your package name hints at a version
number which might be obsolete. But I don't know.
Now, that is incorrect. They chose to package only that version, and
that version is in fact available in the current “oldstable” repository. I use sid on my personal machine, but have repositories for a few recent versions as well.
On 07/06/2025 7:12 pm, Luca Saiu wrote:
On 2025-05-25 at 16:30 +0200, Federico Kircheis wrote:
But dx is still packaged for Debian, it's part of the dalvik-exchange
package,
It would be nice but unfortunately no, per dalvik-exchange 10.0.0+r36-4
. After installing it I see:
[luca@hennessy ~]$ dpkg -S dalvik-exchange
dalvik-exchange: /usr/bin/dalvik-exchange
dalvik-exchange: /usr/share/doc/dalvik-exchange/README.txt
dalvik-exchange: /usr/share/doc/dalvik-exchange
dalvik-exchange: /usr/share/doc/dalvik-exchange/NOTICE.gz
dalvik-exchange: /usr/share/doc/dalvik-exchange/README.Debian
dalvik-exchange: /usr/share/doc/dalvik-exchange/changelog.Debian.gz
dalvik-exchange: /usr/share/doc/dalvik-exchange/copyright
I believe this is the relevant changelog entry:
android-platform-dalvik (7.0.0+r1-2) unstable; urgency=medium
* d/control:
* dalvik-exchange Depends on proguard
* Remove libandroid-jack-dx-java since Jack does not need it for now
* No longer build shrinkedAndroid.jar but link to libandroid-23-java
* dalvik-exchange Depends on libandroid-23-java (>= 6.0.1+r72-3~) >> * Remove the Built-Using field in dalvik-exchange
* No loner Build-Depends on libandroid-23-java
-- Kai-Chung Yan <seamlikok@gmail.com> Fri, 09 Dec 2016 21:45:30 +0800 >>
https://fekir.info/post/how-to-assemble-an-android-program/
I'm not sure what you are showing, installing the package
dalvik-exchange (version 10.0.0+r36-1)
brings
/usr/lib/android-sdk/build-tools/debian/dx
on your system.
I've used it for creating a working android apk, as noted.
On 2025-05-25 at 16:30 +0200, Federico Kircheis wrote:
But dx is still packaged for Debian, it's part of the dalvik-exchange package,
It would be nice but unfortunately no, per dalvik-exchange 10.0.0+r36-4
. After installing it I see:
[luca@hennessy ~]$ dpkg -S dalvik-exchange
dalvik-exchange: /usr/bin/dalvik-exchange
dalvik-exchange: /usr/share/doc/dalvik-exchange/README.txt
dalvik-exchange: /usr/share/doc/dalvik-exchange
dalvik-exchange: /usr/share/doc/dalvik-exchange/NOTICE.gz
dalvik-exchange: /usr/share/doc/dalvik-exchange/README.Debian dalvik-exchange: /usr/share/doc/dalvik-exchange/changelog.Debian.gz dalvik-exchange: /usr/share/doc/dalvik-exchange/copyright
I believe this is the relevant changelog entry:
android-platform-dalvik (7.0.0+r1-2) unstable; urgency=medium
* d/control:
* dalvik-exchange Depends on proguard
* Remove libandroid-jack-dx-java since Jack does not need it for now
* No longer build shrinkedAndroid.jar but link to libandroid-23-java
* dalvik-exchange Depends on libandroid-23-java (>= 6.0.1+r72-3~)
* Remove the Built-Using field in dalvik-exchange
* No loner Build-Depends on libandroid-23-java
-- Kai-Chung Yan <seamlikok@gmail.com> Fri, 09 Dec 2016 21:45:30 +0800
https://fekir.info/post/how-to-assemble-an-android-program/
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 168:31:28 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,545 |