Building android source for the first time on new machine java version error,

by MCON Dev » Sat, 27 Feb 2010 12:41:47 GMT

Sponsored Links
 Issue 1 : Error : Your version is: java version "1.6.0_0". The correct
version is: 1.5.
Should I downgrade java ?

Issue 2 : I was unable to process gpg --import for some reason it hung for a
very long time, or never prompted me for the key. I then pasted the key to a
file key.asc and ran gpg --import key.asc, Error : "no valid OpenPGP data

The needs a bit of improvement. It would be good
if you did not assume repo and git knowledge (80% of my audience during
trainings). I request that you change just these few lines to ensure that it
builds more easily.

Please help
mConDev Team


Other Threads

1. Illegal continuation byte in NewStringUTF

Hi! I'm trying to create a jstring using NewStringUTF but I
experienced a strange issue when the C string passed to the function
contains characters not ASCII (i.e. accented characters). This is what
I get:

01-01 02:56:41.719: WARN/(1738): Creating the jstring for Dracula Der
01-01 02:56:41.719: WARN/dalvikvm(1738): JNI WARNING: illegal
continuation byte 0x68
01-01 02:56:41.719: WARN/dalvikvm(1738):              string: 'Dracula
Der Pfhler.mp3'
01-01 02:56:41.719: WARN/dalvikvm(1738):              in <method_name>

where the first line is created using the char* and the android log
functions. This is the piece of code:

jstring pathStr;
LOGW("Creating the jstring for %s.", fileName);
if ((pathStr = mEnv->NewStringUTF(fileName)) == NULL) {
   LOGE("Failed NewStringUTF.");
   return false;
LOGW("The jstring has been created...");

Any idea why this is happening?


2. onClick for ExpandableListAdapter

I would like to invoke a function when a child is clicked within a

The children are ViewHolders.

Below is my getChildView from myExpandableListAdapter class.

it reacts to Long clicks, but i can't figure out how to also get it to
react to a short click.


public View getChildView(int groupPosition, int childPosition,
                                boolean isLastChild, View convertView, 
ViewGroup parent) {

                        ViewHolder holder;
                        if (convertView == null) {
                                convertView = 
mInflater.inflate(R.layout.listview, null);
                                holder = new ViewHolder();
                                holder.text = (TextView) convertView
                                holder.text2 = (TextView) convertView
                                holder.text3 = (TextView) convertView
                        } else {
                                holder = (ViewHolder) convertView.getTag();


                        return convertView;


3. Want to write a forum reader

4. contact on SGS

5. Keunggulan Android dan Google

6. Test roti djahe on moto droid 1

7. Sansui MiniPad 7" LAN Problem