CANNOT LINK EXECUTABLE: library "libandroid-support.so" not found in Termux - android

When running su on termux application, I get error
CANNOT LINK EXECUTABLE: library "libandroid-support.so" not found
I tried
apt update && apt install tsu.
I tried
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
The problem still exist. Any idea?

Try to run:
apt update && apt install tsu
Then exit the terminal and rest

Related

JNIUS-PYTHON3 is not defined error when debugging buildozer android

I have a Kivy app I am trying to package into an android app using Buildozer. I have installed Pyjnius and Cython but I still get a JNIUS_PYTHON3 is not defined error when it unpacks Cython in the buildozer -v android debug command. Does anyone know how I can fix this? Thanks!
I was seeing the same error. In the folder
.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/jnius
I created a config.pxi file which contained the following lines
DEF JNIUS_PLATFORM = 'android'
DEF JNIUS_PYTHON3 = 'true'
This got me past the error message you mentioned, although I am still stuck on further errors.
Having now gotten my app to compile to an APK file using Buildozer, I feel that my previous answer was just masking an underlying issue of some dependencies not being correctly installed. Going back through my BASH history, the steps I followed can be summarised as...
The initial setup
git clone https://github.com/kivy/buildozer.git
cd buildozer
sudo python setup.py install
Then create a folder within the main buildozer folder to keep the python and kivy files associated with my app
mkdir MyAndroidApp
cd MyAndroidApp/
cp __My_Source_Files__ ./
buildozer init
nano buildozer.spec # Edit some basic settings here
buildozer android debug deploy
When that build process failed, I went through a series of steps to check various dependencies. Some of the following steps appear to me to do basically the same thing, so they are probably not all required, but this is a full list of the various things I tried along the path to eventual success.
sudo apt install libffi-dev
sudo apt install python3-setuptools
sudo apt install libssl-dev
sudo apt install python3-pip
sudo apt install python-pip
pip3 install --user --upgrade Cython==0.29.19 virtualenv
pip3 install --user --upgrade pyjnius
pip3 install --user --upgrade setuptools
pip install Cython
pip3 install setuptools
I was then able to use the following commands to get a successful build
buildozer android clean
buildozer android debug deploy
If you are seeing that error, then I think the correct place to start is to look at the dependencies that are being complained about in the various error messages and double check that everything is installed correctly.
In the end, it worked for me, and I hope that these notes prove some use to you in sorting through your issues as well. Good luck.

E: unable to locate package update (Android Termux)

I followed the directions here: https://gist.github.com/2niuhe/f9c0a1168ebc02bd0b89ffdb7ed21f6c to try and get a working version of XMRig on my Android, but sadly it's failing at the first step. Can somebody help? These are the commands it instructs me to run:
pkg install update && upgrade
apt install git
apt install wget
apt install proot
termux-setup-storage
git clone https://github.com/Neo-Oli/termux-ubuntu
cd termux-ubuntu
chmod +x ubuntu.sh
sh ubuntu.sh
./start-ubuntu.sh

how can I install java runtime on Android device?

I need to install some packages and Linux programs on my android devices. for example I want to use something similar YUM or get-apt command (I know these are Linux Commands) through windows powershell connected to my android device. but it does not recognize these commands. even ADB does not work, e.g. adb update -y is unknown command. How can i do this, is it possible. if the android kernel is linux so I guess there must be a way. I checked this but didnt help me:
Is it possible to install the JDK on an android device?
Thanks
EDITED: I used the link below , thanks to my friend for good answer. this is the command i used :
pkg install wget && wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
BUT when i run java command it says "Killed". No Idea!
Try Termux, a linux terminal emulator for android.A minimal base system is installed automatically - additional packages are available using the APT package manager. You can use following commands to install java8.
pkg install git
git clone https://github.com/MasterDevX/Termux-Java.git
cd Termux-Java
chmod +x installjava
bash installjava
When installed, run java -version to check, if it's correcty installed.
After that you can run java using Java command.
$ apt update && apt upgrade
$ apt install openjdk-17
First of all install termux.
Then run following commands :
$ pkg update -y && pkg upgrade -y
$ termux-setup-storage
And give the storage permission.
After that download these 2 files.
JDK-9 : https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
JRE-9 : https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jre-headless_9.2017.8.20-1_arm.deb
Remember the filenames, and the folder where you downloaded the files.
Go back to termux and run :
$ cd /sdcard/<folder name>
Replace foldername with your download folder.
$ mv file1 file2 $HOME
Replace file1 and file2 with actual filenames.
Alternative :
If you don’t want to download and move files manually you can use this commands (not recommended) :
$ pkg install wget -y
$ wget https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
$ wget https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jre-headless_9.2017.8.20-1_arm.deb
It will download files within your termux home directory.
Finally run,
$ apt-get install -y ./openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
$ apt-get install -y ./openjdk-9-jre-headless_9.2017.8.20-1_arm.deb
And You're done.
Try typing java or javac.
If you don’t see an Error you're good to go.
See Source
First, you need to install termux from their f droid link. Their playstore version is not updated. You can find the fdroid link from their github repository.
run the following command:
apt update
apt search openjdk
If you find a version of openjdk available, for example : presently openjdk-17 is available
install it using command:
apt install package-name
example:
apt install openjdk-17
follow the prompts and java will be installed in your termux.
Download java is possible
Check this github link
Termux java https://github.com/EagleComrade/Termux-java.git
It provides direct installtion of java from termux-source
Installtion from unwanted sources are not really trusted
So this tool is realy great
Do the following for install java without errors.
pkg install git
git clone https://github.com/EagleComrade/Termux-java.git
cd Termux-java
chmod +x install.sh
./install.sh
Java is installed .......
Install termux and run these commands
pkg update
pkg install openjdk-17
java --version
Install ubuntu on termux from anlinux... Then use
$ apt install default-jdk
Job done!

E:The repository 'http://apt.postgresql.org/pub/repos/apt tessa-pgdg Release' does not have a Release file

I have installed android studio on my linux mint 19.1 and after installation of it I restarted my PC. After restarting I couldn't see wi-fi sign in my machine.
Enable wifi option is not showing. I opened driver manager and I got the above error. I have already tried sudo apt-get update and sudo apt-get upgrade. I also restarted my machine several times.
I think this error appeared since the PostgreSQL repo doesn't have a release for "tessa".
Two solutions:
Edit the "/etc/apt/sources.list.d/pgdg.list" file (or another list file contains "http://apt.postgresql.org/pub/repos/apt tessa-pgdg Release") and change "tessa" to one of the version name supported by PostgreSQL (here is the list: https://apt.postgresql.org/pub/repos/apt/dists/).
Simply delete "/etc/apt/sources.list.d/pgdg.list" or remove the line "http://apt.postgresql.org/pub/repos/apt tessa-pgdg Release" in other file if you are not using PostgreSQL.
Here $(lsb_release -cs) returns terra and this doesn't work in many distributions. Use bionic instead, it should work
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
And then finally install pgadmin:
sudo apt install pgadmin4
Enjoy!
make
/etc/apt
make
sources.list.d
make
rm pgdg.list
make
sudo apt-get update && apt-get upgrade

Android development environment in ubuntu?

I'm a new android developer and i want to coding in unbun.I download the sdk in http://developer.android.com/sdk/index.html,but when i open the eclipse,it alert a error
[2014-03-05 22:01:39 - adb] Unexpected exception 'Cannot run program "/usr/local/bin/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb": error=2, 没有那个文件或目录' while attempting to get adb version from '/usr/local/bin/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb',i am confused with this question,who can help me?
Is Java installed? Can you access it from the command line - IOW what does:
java --version
return?
Is this version compatible with the Android SDK you've installed?
Can you run adb commands from the command line?
Is Eclipse configured with to use your installed versions of Java and Android SDK?
What user is Eclipse running as? Does that user have execute permissions for Java and the Android SDK?
On Linux you need to install IA32 library as well.
Try this:
apt-get install ia32-libs
You can no longer install ia32-libs, so you must the individual 32 bit libraries needed by adb
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
And for Ubuntu 13.10:
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1

Categories

Resources