Not able to debug app on android device - Android Studio 2.0

后端 未结 12 1815
轻奢々
轻奢々 2020-12-09 14:48

I am not able to debug an app on my device (Asus Zenphone 2) after I updated android studio to 2.0. I keep seeing below message in debug tab right after I click on debug ico

12条回答
  •  抹茶落季
    2020-12-09 15:32

    I just wanted to share my experience as I had the same error and there was no way to solve it using all the solutions you guys posted. I even deleted several times my virtual device, no way to make it work again.

    In my App I have a custom permission com.example.CUSTOM_PERMISSION and I wanted to use it to protect my Main Activty from a confused deputy attack.

        
    

    . . .

        
            
                
    
                
            
        
    

    Somehow that property android:permission was preventing my app to install and run on the virtual device, even though it could be compiled and build with Gradle successfully. Just after removing it, everything is fine again I am not sure the app is protected this way, I'm building another test app to try performing a confuse deputy and see if the declaration of the custom is just enough.

    Hope this can help somebody that was getting mad like me!

提交回复
热议问题