其实我在我的Android应用程序中有一个错误,我想看到它的日志我遵循这些命令: -
You need to use adb server.
1. Connect your android with your laptop/pc
2. Go to developer options and turn on the stay awake and USB debugging options. (Your phone)
3. In your terminal, type "sudo adb kill-server" and then "sudo adb start-server".
4. Type "adb devices" (this should give list of devices connected)
List of devices attached
you_device_name device
5. "cd" to your folder where you have made your build.
6. Type "buildozer android debug deploy run logcat > logcat.txt"
this saves the logs (for the entire process) in a file logcat.txtx in the same folder and also deploys you app on the phone.
Go through it and find your error.
7. keep your phone awake.(do not lock it).
所有步骤都表现良好,但是当我来到第二步时。 6,并在我的终端运行,这个命令卡在那里我的意思是什么都没有出现没有处理文件在目录中创建,其中没有日志: -
logcat.txt
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? # Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk-20
# Android NDK found at /root/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Build the application #102
# Package the application
和终端看起来像: -
root@kali:~# buildozer android debug deploy logcat > logcat.txt
那个;之后没有任何事情发生。难道我做错了什么?请帮忙