pythonforandroid下载中文_SL4A、PythonForAndroid和Android 7.0 Noug

裴兴学
2023-12-01

SL4A:SL4A-r6.1.1臂-调试.apk在

PY4A:Python-调试.apk在

有sl4a-r6.1.1版本和python解释器r26版本的可安装apk。他们基本上在Android Nougat上运行,但是有些功能不工作或者看起来不稳定。在

很高兴看到谷歌又在开发SL4A。在

所以,我试图从Android Nougat的Android Nougat版本安装新的sl4a7.0。我从https://android.googlesource.com/platform/external/sl4a/获得源代码并生成sl4a.apk

问题sl4a 7.0 doesn't work with current PythonForAndroid interpreter - r26. When I execute SL4A

on device, crash is happening.

这里是logcatAndroidRuntime: FATAL EXCEPTION: pool-1-thread-1

AndroidRuntime: Process: com.googlecode.android_scripting, PID: 22750

AndroidRuntime: java.lang.RuntimeException: java.lang.RuntimeException: Binary /data/user/0/com.googlecode.pythonforandroid/files/python/bin/python does not exist!

AndroidRuntime: at com.googlecode.android_scripting.SingleThreadExecutor.afterExecute(SingleThreadExecutor.java:32)

AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1141)

AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)

AndroidRuntime: at java.lang.Thread.run(Thread.java:761)

AndroidRuntime: Caused by: java.lang.RuntimeException: Binary /data/user/0/com.googlecode.pythonforandroid/files/python/bin/python does not exist!

AndroidRuntime: at com.googlecode.android_scripting.interpreter.Interpreter.setBinary(Interpreter.java:118)

AndroidRuntime: at com.googlecode.android_scripting.interpreter.Interpreter.buildFromMaps(Interpreter.java:73)

AndroidRuntime: at com.googlecode.android_scripting.interpreter.InterpreterConfiguration$InterpreterListener.buildInterpreter(InterpreterConfiguration.java:173)

AndroidRuntime: at com.googlecode.android_scripting.interpreter.InterpreterConfiguration$InterpreterListener.addInterpreter(InterpreterConfiguration.java:119)

AndroidRuntime: at com.googlecode.android_scripting.interpreter.InterpreterConfiguration$InterpreterListener.-wrap0(InterpreterConfiguration.java)

AndroidRuntime: at com.googlecode.android_scripting.interpreter.InterpreterConfiguration$InterpreterListener$2.run(InterpreterConfiguration.java:101)

AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)

实际上,python位于确切的目录中。这个问题看起来像是权限问题。

有人帮我解决这个问题吗?在

 类似资料: