Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

solange tuyisenge
solange tuyisenge
3,081 Points

When I run my app i get an error:

I get the error belwo when I run my app

DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.sosot.funfacts" Error: Could not access the Package Manager. Is the system running?

what could be wrong?

Thanks

Solange

2 Answers

Sang Tran
Sang Tran
6,918 Points

Not sure if this will help. But, you probably have to manually unlock your Android Virtual Device by swiping the "lock" icon on the screen. Security measures prevent the emulator from letting you connect the debugger before doing this.

solange tuyisenge
solange tuyisenge
3,081 Points

Thank you Sang.

I restarted it and it worked. next time i see the error I will follow your advice.

Regards,

Solange