Closed DavidBarishev closed 8 years ago
what IDE are you using for the build process?
I tried to build from android studios 2.1.2 with no luck and using the cmd with this command to get the full log:
gradlew.bat assembleDebug --debug --stacktrace
Same error on both.
The project i tried to build is identical except local.properties. I changed it to match my sdk location:
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Mon Aug 15 15:43:08 IDT 2016
ndk.dir=D\:\\AndroidSDK\\ndk-bundle
sdk.dir=D\:\\AndroidSDK
Try:
Same problem, i cant even clean the project since the clean function runs the ':app:processDebugResources' which makes aapt crash
You must have broken your build process somehow. This is confirmed to build on Win.
Start a new project and make sure you only have the py2 or py3 build folders selected and set the appropriate SDK location.
I tried to build the apk-2.7 with no success, this is the steps that i tried:
Git clone https://github.com/ainsophical/DROID_PYTHON.git
This windows popups , clicking on OK
The path
'\opt\android-sdk'
does not belong to a directory.
Android Studio will use this Android SDK instead:
'D:\AndroidSDK'
and will modify the project's local.properties file.
[OK]
The project is using an old version of the Android Gradle plugin. To take advantage of all the latest features, such as Instant Run, we strongly recommend that you update the Android Gradle plugin to version 2.1.2.
You can learn more about this version of the plugin from the release notes.
[Update] [Remind me later] [Don't remind me again for this project]
I tried to build the apk-3.2 with the same steps, and the project builds successfully but when i try to run it in Nexus 5 API 21/Nexus 6 Api 21 x86_64 emulator i get INSTALL_FAILED_NO_MATCHING_ABIS, but i NOX app player i could get it to work.
Seems really weird, any idea ?
I did some more testing with the apk-3.2, since i could get it to build but not install on all systems.This is the result i got, All testing is on Nexus 5 emulated device.
API | system image bit | install | work |
---|---|---|---|
23 | x86_64 | INSTALL_FAILED_NO_MATCHING_ABIS | x |
23 | x86 | INSTALL_FAILED_NO_MATCHING_ABIS | x |
22 | x86_64 | INSTALL_FAILED_NO_MATCHING_ABIS | x |
22 | x86 | INSTALL_FAILED_NO_MATCHING_ABIS | x |
21 | x86_64 | INSTALL_FAILED_NO_MATCHING_ABIS | x |
21 | x86 | INSTALL_FAILED_NO_MATCHING_ABIS | x |
19 | x86 | ✔ | The installation part is loading, when it finishes it prints `install finished' and the app crashes, cant open the app - insta crash |
19 | arm | ✔ | Application won't start |
23(My own nexus 5 running cyanogenmod 13 , android version 6.0.1 ) | arm | ✔ Seems that during install it couldn't chmod because it had not enought permission (I checked and it seemed to have storage permissions ) | x Application won't launch, Maybe because of bad install |
log for 19 API -arm when opening the app:
08-16 07:59:08.209 3702-3728/com.android.python32 I/Python32APK: Executing /data/data/com.android.python32/files/python3/bin/python3 with arguments [/data/data/com.android.python32/files/hello.py, --foreground] and with environment {ANDROID_SOCKET_zygote=9, AP_HANDSHAKE=10a96069-b98f-4430-9289-9c0ad61b55f9, ANDROID_STORAGE=/storage, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/storage/sdcard, ANDROID_ASSETS=/system/app, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ASEC_MOUNTPOINT=/mnt/asec, PYTHONPATH=/storage/sdcard/com.android.python32/extras/python3:/data/data/com.android.python32/files/python3/lib/python3.2/lib-dynload:/data/data/com.android.python32/files/python3/lib/python3.2, AP_HOST=127.0.0.1, LOOP_MOUNTPOINT=/mnt/obb, TEMP=/storage/sdcard/com.android.python32/extras/tmp, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar, AP_PORT=35201, ANDROID_DATA=/data, PYTHONHOME=/data/data/com.android.python32/files/python3, LD_LIBRARY_PATH=/data/data/com.android.python32/files/python3/lib:/data/data/com.android.python32/files/python3/lib/python3.2/lib-dynload, ANDROID_ROOT=/system, ANDROID_PROPERTY_WORKSPACE=8,0}
08-16 07:59:08.239 3702-3728/com.android.python32 D/dalvikvm: Trying to load lib /data/app-lib/com.android.python32-2/libcom_googlecode_android_scripting_Exec.so 0x9ddff390
08-16 07:59:08.269 3702-3728/com.android.python32 D/dalvikvm: Added shared lib /data/app-lib/com.android.python32-2/libcom_googlecode_android_scripting_Exec.so 0x9ddff390
08-16 07:59:08.269 3702-3728/com.android.python32 D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.android.python32-2/libcom_googlecode_android_scripting_Exec.so 0x9ddff390, skipping init
08-16 07:59:08.669 3702-3728/com.android.python32 D/dalvikvm: GC_FOR_ALLOC freed 324K, 16% free 3346K/3956K, paused 162ms, total 162ms
log for API 19 - x86:
08-16 08:04:09.686 3910-3925/com.android.python32 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.android.python32, PID: 3910
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load com_googlecode_android_scripting_Exec from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.android.python32-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.android.python32-2, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.googlecode.android_scripting.Exec.<clinit>(Exec.java:68)
at com.android.python32.process.Process.start(Process.java:137)
at com.android.python32.process.InterpreterProcess.start(InterpreterProcess.java:138)
at com.android.python32.process.MyScriptProcess.launchScript(MyScriptProcess.java:61)
at com.android.python32.BackgroundScriptService.startMyMain(BackgroundScriptService.java:182)
at com.android.python32.BackgroundScriptService.access$000(BackgroundScriptService.java:45)
at com.android.python32.BackgroundScriptService$startMyAsyncTask.doInBackground(BackgroundScriptService.java:138)
at com.android.python32.BackgroundScriptService$startMyAsyncTask.doInBackground(BackgroundScriptService.java:131)
My nexus 5 log:
08-16 15:06:08.103 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/hello.py
08-16 15:06:08.131 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/bin/python3
08-16 15:06:09.097 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/libsqlite3.so.0
08-16 15:06:09.105 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/libpython3.so
08-16 15:06:09.118 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_struct.cpython-32m.so
08-16 15:06:09.165 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/math.cpython-32m.so
08-16 15:06:09.174 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/fcntl.cpython-32m.so
08-16 15:06:09.215 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_multibytecodec.cpython-32m.so
08-16 15:06:09.242 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_codecs_tw.cpython-32m.so
08-16 15:06:09.261 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_datetime.cpython-32m.so
08-16 15:06:09.280 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/array.cpython-32m.so
08-16 15:06:09.318 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_ctypes.cpython-32m.so
08-16 15:06:09.468 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/unicodedata.cpython-32m.so
08-16 15:06:09.506 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/cmath.cpython-32m.so
08-16 15:06:09.516 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/audioop.cpython-32m.so
08-16 15:06:09.524 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/syslog.cpython-32m.so
08-16 15:06:09.532 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/select.cpython-32m.so
08-16 15:06:09.537 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/resource.cpython-32m.so
08-16 15:06:09.561 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_socket.cpython-32m.so
08-16 15:06:09.567 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/binascii.cpython-32m.so
08-16 15:06:09.574 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/grp.cpython-32m.so
08-16 15:06:09.592 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_testcapi.cpython-32m.so
08-16 15:06:09.611 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_curses.cpython-32m.so
08-16 15:06:09.630 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_curses_panel.cpython-32m.so
08-16 15:06:09.644 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_bisect.cpython-32m.so
08-16 15:06:09.689 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/pyexpat.cpython-32m.so
08-16 15:06:09.696 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/mmap.cpython-32m.so
08-16 15:06:09.704 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_csv.cpython-32m.so
08-16 15:06:09.934 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_hashlib.cpython-32m.so
08-16 15:06:09.950 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_ctypes_test.cpython-32m.so
08-16 15:06:09.989 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_codecs_cn.cpython-32m.so
08-16 15:06:09.995 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/zlib.cpython-32m.so
08-16 15:06:10.001 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_posixsubprocess.cpython-32m.so
08-16 15:06:10.020 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_multiprocessing.cpython-32m.so
08-16 15:06:10.028 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/termios.cpython-32m.so
08-16 15:06:10.035 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_lsprof.cpython-32m.so
08-16 15:06:10.056 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_elementtree.cpython-32m.so
08-16 15:06:10.061 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/time.cpython-32m.so
08-16 15:06:10.094 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_codecs_hk.cpython-32m.so
08-16 15:06:10.115 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_pickle.cpython-32m.so
08-16 15:06:10.155 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/parser.cpython-32m.so
08-16 15:06:10.160 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_random.cpython-32m.so
08-16 15:06:10.163 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/atexit.cpython-32m.so
08-16 15:06:10.191 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_codecs_kr.cpython-32m.so
08-16 15:06:10.211 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_sqlite3.cpython-32m.so
08-16 15:06:10.221 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_json.cpython-32m.so
08-16 15:06:10.265 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/bz2.cpython-32m.so
08-16 15:06:10.275 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/readline.cpython-32m.so
08-16 15:06:10.571 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_ssl.cpython-32m.so
08-16 15:06:10.577 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_codecs_iso2022.cpython-32m.so
08-16 15:06:10.586 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/crypt.cpython-32m.so
08-16 15:06:10.626 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_codecs_jp.cpython-32m.so
08-16 15:06:10.631 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload/_heapq.cpython-32m.so
08-16 15:06:11.117 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/libpython3.2m.so.1.0
08-16 15:06:11.202 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/libreadline.so.6
08-16 15:06:11.228 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/libz.so.1
08-16 15:06:11.303 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/libncurses.so.5
08-16 15:06:11.317 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/lib/python3.2/config-3.2m/Makefile
08-16 15:06:11.327 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /data/user/0/com.android.python32/files/python3/include/python3.2m/pyconfig.h
08-16 15:06:13.684 11605-12042/com.android.python32 D/Python32APK: Unzip deleted /storage/emulated/0/com.android.python32/extras/python3/
08-16 15:06:13.688 11605-12042/com.android.python32 W/FileUtils: Failed to chmod(/storage/emulated/0/com.android.python32/extras/python3): android.system.ErrnoException: chmod failed: EPERM (Operation not permitted)
08-16 15:06:13.688 11605-12042/com.android.python32 D/Python32APK: Unzip extracted /storage/emulated/0/com.android.python32/extras/python3/
08-16 15:06:13.693 11605-12042/com.android.python32 W/FileUtils: Failed to chmod(/storage/emulated/0/com.android.python32/extras/python3/abc.py): android.system.ErrnoException: chmod failed: EPERM (Operation not permitted)
... Goes on for every .py file
This is when i try to launch the app
08-16 15:13:12.650 13777-13777/com.android.python32 I/LoadedApk: No resource references to update in package common
08-16 15:13:12.654 13777-13777/com.android.python32 I/LoadedApk: No resource references to update in package com.kohlewrrk.outray
08-16 15:13:12.656 13777-13777/com.android.python32 I/LoadedApk: No resource references to update in package com.blissroms.moelle.ddoverhauled
08-16 15:13:13.085 13777-13808/com.android.python32 V/sl4a.SimpleServer:225: Bound to /127.0.0.1
08-16 15:13:13.130 13777-13808/com.android.python32 I/Python32APK: Executing /data/user/0/com.android.python32/files/python3/bin/python3 with arguments [/data/user/0/com.android.python32/files/hello.py, --foreground] and with environment {ANDROID_ROOT=/system, AP_PORT=38618, ANDROID_CACHE=/cache, AP_HANDSHAKE=b0fdc406-5f92-48da-8c71-7efabf185105, LD_PRELOAD=libsigchain.so, ANDROID_BOOTLOGO=1, TERMINFO=/system/etc/terminfo, AP_HOST=127.0.0.1, LD_LIBRARY_PATH=/data/user/0/com.android.python32/files/python3/lib:/data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload, EXTERNAL_STORAGE=/sdcard, SYSTEMSERVERCLASSPATH=/system/framework/org.cyanogenmod.platform.jar:/system/framework/org.cyanogenmod.hardware.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar, PYTHONHOME=/data/user/0/com.android.python32/files/python3, ANDROID_SOCKET_zygote=12, PYTHONPATH=/storage/emulated/0/com.android.python32/extras/python3:/data/user/0/com.android.python32/files/python3/lib/python3.2/lib-dynload:/data/user/0/com.android.python32/files/python3/lib/python3.2, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_DATA=/data, ANDROID_ASSETS=/system/app, CLASSPATH=/system/framework/XposedBridge.jar, ASEC_MOUNTPOINT=/mnt/asec, TEMP=/storage/emulated/0/com.android.python32/extras/tmp, BOOTCLASSPATH=/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar, ANDROID_PROPERTY_WORKSPACE=10,0, PREBUNDLED_ROOT=/vendor/bundled-app, ANDROID_STORAGE=/storage}
08-16 15:13:13.182 13777-13829/com.android.python32 D/Python32APK: Process 13827 exited with result code 1.
08-16 15:13:13.220 13777-13829/com.android.python32 I/Process: Sending signal. PID: 13777 SIG: 9
Would like to hear your thought about it
The python interpreters for the packages are compiled for arm, they couldn't possible run on x86 architecture. This was already discussed in a closed issue.
Hello!
I have came across this project and downloaded it.I tried to build the apk-2.7 but without any success. When i build it a process named 'aapy.exe' crashes and this is my full gradle log for this task:
I have python 2.7.10 (32 bit) , on windows 10 64 bit. Any ideas ?