尝试在Android Studio (v.0.4.4)上调试Android应用程序时出现以下错误:
Error running <appname> [assembleDebug]:
Unable to open debugger port : java.net.SocketException "Socket closed"
该应用程序编译后,可以使用adb推送到手机上。使用adb没有问题;我可以很好地安装/监控logcat等。我可以加载另一个项目,并且可以很好地调试它。我切换回这个,它仍然是坏的。所以这似乎排除了pc (实际上是在windows下运行的Linux
我使用的是Android Studio 1.5.1,它会在应用程序重启时清除logcat缓冲区。现在,我的应用程序崩溃,重启,我看不到崩溃之前发生了什么。
有没有办法让Android Studio中的logcat在应用重启时不被清除?我想增加logcat缓冲区的大小,但在当前版本的AS中找不到该选项。
在我的M1上构建安卓项目的过程中,使用kapt的苹果硅(如房间)
Android Studio Arctic Fox | 2020.3.1 Beta 1 arm64
..
Android Studio Arctic Fox | 2020.3.1 Beta 5 arm64
Android Studio Bumblebee | 2021.1.1 Canary 2 aarch64
使用
Android Studio Arctic Fox | 2020.3.1 Beta 5
Build #AI-203.7717.56.2031.7360992, built on May 14, 2021
Runtim
我对Logcat有问题。只有当我使用Android API level 22的设备时,Logcat才不会显示任何内容。我使用了Android Studio :改变ADB在设备上的位置,杀死adb服务器,重启Logcat,失效缓存/重启,重新安装设备,重置Android Studio /Computer。没有解决任何问题。
为了调试我不能重现的用户问题,我尝试在我的应用程序中添加一个按钮来收集logcat输出并通过电子邮件发送它。我有麻烦了。
首先,我尝试使用。我掉进一个小洞里好一阵子。我得到了
java.lang.RuntimeException: com.android.build.api.transform.TransformException: Error while generating the main dex list.
at ...
Caused by: com.android.tools.r8.errors.CompilationError: Program type already prese
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,616 B of archives.
After this operation, 0 B of additional disk space wi
在AndroidStudio2.3.3中,我经常收到数十条逻辑猫消息。大概每5次跑一次:
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
com.android.inputmethod.latin E/RichInputConnection: Unable to connect to the editor to retrieve text... will retry later
在Android studio Arctic Fox 2020.3.1的新更新之后。一个小的预览弹出窗口出现,并阻止了屏幕的某些部分,它不会消失,有时我不得不退出android studio以使其消失。我不确定这是一个bug还是一个特性。有没有人有类似的问题?在stackoverflow上找不到类似的帖子,这似乎是这个版本的Android Studio特有的。附图。 ?
我使用的是Android Studio 4.1.3,但是当我运行Jetcaster项目( Google代码的一个例子)时,我得到了这个错误。 This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.