adb insufficient permissions for device

Problem

You are trying to use the Android Debug Bridge (adb), but running it from the command line trying to list the connected devices you get the error:

insufficient permissions for device

Solution

You would need to start the adb server with su permissions, so you can try the following:

adb kill-server
sudo adb start-server
adb devices
adb logcat

SL4Ar4 crashing after installation

Problem
After installing SL4A_r4 (Scripting Layer for Android), on your Android phone, and before installing any interpreters every time you start your SL4A app, it keeps crashing after a few seconds.

Solution
If you install an interpreter (ie JRuby), then the application stops crashing.
You would need to be quick to start the installation before the application crashes, by doing the following:

Settings -> View -> Interpreters -> Settings -> Add and then select the interpreter you would like.

/lib/libz.so.1: no version information available

Problem
You are following the steps described in the book ‘Hello, Android’, but when you try to change the interface in section 3.3 ‘Creating the Opening Screen’, and try to run the application in either the emulator or the phone you get the following error message in the eclipse console:
/lib/libz.so.1: no version information available...

Solution
You will need to make sure that you add the needed strings, i.e (main_title, continue_label, new_game_label, about_label and exit_label) in the Sudoku/values/strings.xml file, which is described in page 51, but is not clear that you have to do that before running the app. So your strings.xml file should look like:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Sudoku</string>
<string name="main_title">Android Sudoku</string>
<string name="continue_label">Continue</string>
<string name="new_game_label">New Game</string>
<string name="about_label">About</string>
<string name="exit_label">Exit</string>
</resources>