• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ERROR RUN APP

Hi everyone,

I just finished my first app. It was working fine but now I get :

"Installation failed with message Failed to establish session."

$ adb shell pm install -r "/data/local/tmp/com.example.fezyla.test3"
Error: Could not access the Package Manager. Is the system running?


$ adb shell pm uninstall com.example.fezyla.test3
Unknown failure (Error: Could not access the Package Manager. Is the system running?)
Error while Installing APK

I am using Android Studio.

Does someone know where this error comes from ?

Thank you and best,
 
Why are you manually installing your APK? Android Studio can install it for you on to your device.
 
Sorry I don't quite understand what you're trying to say, but I don't know why you're using 'adb' commands to install the APK. You just simply connect your device, and run the app from Android Studio, deploying it to your device. This should install the APK to the device. There's no need use adb commands to do this.
 
Back
Top Bottom