26

When I run my application, the message below is printed in the error log. I don't understand if the problem is from my application or if the message is printed by my Android device.

E/NEW_BHD: Cannot run on production devices!

I read this answer Unable to run 'adb root' on a rooted Android phone , but my device is not rooted.

Why this error log is printed ?

Community
  • 1
  • 1
Yogesh Rathi
  • 6,331
  • 4
  • 51
  • 81

3 Answers3

0

The main problem (I believe) that causes this, is your mobile's battery.

When Motorola mobiles have low battery, and they're connected to a computer, the USB option for the mobile will be forced to charging only mode.

To solve this, just swipe down from the top, click the USB for charging, touch for more options and select File Transfer. This will resolve your problem.

Sebastián Palma
  • 32,692
  • 6
  • 40
  • 59
0

Try enabling this function: go to Settings -> Security Just activate Unknown sources.

Now that you're ready to install your apk.

Sercho
  • 109
  • 1
  • 3
-1

Try to active Developer Mode on setting of your device.

Enable Developer Options In Android 6.0 Marshmallow

  1. Pull down on the notifications shade and open the Settings app. You can also achieve the same thing from the app drawer if you so wish.

  2. Scroll all the way down and tap on ‘About phone’.

  3. Now scroll down again and you’ll see an entry labelled ‘Build number’. Keep on tapping till you see a prompt that says ‘You are now a developer!

Community
  • 1
  • 1
Erik Chau
  • 57
  • 5