Something wrong with compiling HelloWorld to Android !!!

Hi , I have something wrong in compiling the HelloWorld project to Android. I have been follow the tutorials in this site,but always something wrong like this:
make:Entering directory ‘/cygdrive/d/cocos2d-x…./HelloWorld android
make:Leaving directory’/cygdrive/d/cocos2d-x…./HelloWorld android

and nothing happen,and the assets is empty,no .so. what’s wrong ? thanks!

Please check if you miss the slash between “HelloWorld” and “android”.
The correct path must look like ’/cygdrive/d/cocos2d-x/HelloWorld/android"
Resources will be copied into assets folder automatically in build_native.sh

oh I’m sorry I miss something.here it is:

make: Entering directory `/cygdrive/d/cocos2d-0[1].99.5-x-0.8.5/cocos2d-0.99.5-x
-0.8.5/HelloWorld/android'
make: Leaving directory `/cygdrive/d/cocos2d-0[1].99.5-x-0.8.5/cocos2d-0.99.5-x-
0.8.5/HelloWorld/android'

and this is my build_native.sh:

# set params
ANDROID_NDK_ROOT=/cygdrive/d/android-ndk-r5c-windows/android-ndk-r5c
COCOS2DX_ROOT=/cygdrive/d/cocos2d-0[1].99.5-x-0.8.5/cocos2d-0.99.5-x-0.8.5
HELLOWORLD_ROOT=$COCOS2DX_ROOT/HelloWorld/android

# make sure assets is exist
if [ -d $HELLOWORLD_ROOT/assets ]; then
    rm -rf $HELLOWORLD_ROOT/assets
fi

mkdir $HELLOWORLD_ROOT/assets

# copy resources
for file in $COCOS2DX_ROOT/HelloWorld/Resource/*
do
    if [ -d $file ]; then
        cp -rf $file $HELLOWORLD_ROOT/assets
    fi

    if [ -f $file ]; then
        cp $file $HELLOWORLD_ROOT/assets
    fi
done
# build
pushd $ANDROID_NDK_ROOT
./ndk-build -C $HELLOWORLD_ROOT $*
popd

anything wrong? thx!

The build_native.sh looks correct. Can you paste a screenshot showing the folders/files in HelloWorld/android ?

No problem.The screenshot shows that I have compiled.But the folder assets is empty??

Please make sure whether this paragraph in build_native.sh is excuted

# make sure assets is exist
if [ -d $HELLOWORLD_ROOT/assets ]; then
    rm -rf $HELLOWORLD_ROOT/assets
fi

mkdir $HELLOWORLD_ROOT/assets

# copy resources
for file in $COCOS2DX_ROOT/HelloWorld/Resource/*
do
    if [ -d $file ]; then
        cp -rf $file $HELLOWORLD_ROOT/assets
    fi

    if [ -f $file ]; then
        cp $file $HELLOWORLD_ROOT/assets
    fi
done

Or the condition judgement is passed by.

Yeah,I found that the [ -d $file ] was false ! but if I replaced the value of file with “$COCOS2DX_ROOT/HelloWorle/Resource/”,it copied the Resource folder into the assets.The char “" means the any files in the Resource folder right ? Something wrong with the "” or other wrongs like some .mk file?