【问题标题】:Could not connect to remote process. Aborting debug session. problem debug无法连接到远程进程。中止调试会话。问题调试
【发布时间】:2021-11-22 17:45:59
【问题描述】:

我有问题

Waiting for application to come online: com.example.distribution_system | com.example.distribution_system.test

Waiting for application to come online: com.example.distribution_system | com.example.distribution_system.test

Waiting for application to come online: com.example.distribution_system | com.example.distribution_system.test

--->Could not connect to remote process. Aborting debug session.

我做到了

--->adb kill-server && adb start-server

--->使缓存无效/重启

但还没有工作

image1:--> [1]: https://i.stack.imgur.com/HZF5D.png

image2:--> [2]: https://i.stack.imgur.com/hrE4a.png

【问题讨论】:

    标签: java android android-studio


    【解决方案1】:

    我不知道为什么,但我可以通过设置 android:exported = "true" 来启动第一个 Activity 来解决这个问题。

    <activity
         android:name = ".ui.top.TopActivity"
         android:exported = "true"
         android:label = "@string/app_name">
    
         <intent-filter>
             <action android:name = "android.intent.action.MAIN" />
             <category android:name = "android.intent.category.LAUNCHER" />
         </ intent-filter>
    </ activity>
    

    【讨论】:

      猜你喜欢
      • 2014-03-05
      • 2017-07-19
      • 2018-07-01
      • 2014-07-31
      • 2012-11-04
      • 2017-04-15
      • 1970-01-01
      • 2015-05-30
      • 2014-07-14
      相关资源
      最近更新 更多