Android enterprise runtime error [no field package.preload['network']]

I use corona enterprise 2014.2122 daily build.

How can I fix bug?

I did not use network module anywhere.

WARNING: Could not load ‘LuaLoader’

Runtime error

module ‘network’ not found:

    no field package.preload[‘network’]

    no file ‘(null)/network.lua’

    no file ‘(null)/network.lua’

    no file ‘/data/app-lib/com.neezen.game.gob-2/libnetwork.so’

    no file ‘./network.so’

    no file ‘(null)/network.so’

stack traceback:

    [C]: in function ‘require’

    ?: in main chunk

Runtime error

stack traceback:

    [C]: in function ‘require’

    ?: in main chunk

> Class.forName: network.LuaLoader

< Class.forName: network.LuaLoader

Loading via reflection: network.LuaLoader

do you have network.jar in your <PROJECT_ROOT>/android/libs directory?

that jar comes with corona sdk. it get copied over to the structure of your project by build.sh

“$SDK_PATH/tools/android” update lib-project -p “$CORONA_PATH/Corona/android/lib/Corona”

checkError

if this step failed in that build you will have jar missing. Make sure that you read/follow instructions to the t given here:

http://docs.coronalabs.com/native/android/index.html

see section “Building with Ant”

Cheers,

Alex.

I don’t recommend that you copy Corona’s libraries into your “libs” directory like this.

Since Corona is an Android library project, you should reference it via your “project.properties” file.  That way the Android build system will automatically include all of Corona’s libraries into your application.  Notice that this is how all of our Corona Enterprise sample projects are configured.

The only time you should include a *.jar or *.so library into your “libs” directory by hand is if it is not an Android library project.  For example, this is the case for Flurry and most ad libraries.

What I’ve mentioned above is documented on Google’s Android development website here…

   http://developer.android.com/tools/projects/index.html

I solved this issue!! 

If you have class that implements NamedJavaFunction that return “null”, you can occurred same error…

do you have network.jar in your <PROJECT_ROOT>/android/libs directory?

that jar comes with corona sdk. it get copied over to the structure of your project by build.sh

“$SDK_PATH/tools/android” update lib-project -p “$CORONA_PATH/Corona/android/lib/Corona”

checkError

if this step failed in that build you will have jar missing. Make sure that you read/follow instructions to the t given here:

http://docs.coronalabs.com/native/android/index.html

see section “Building with Ant”

Cheers,

Alex.

I don’t recommend that you copy Corona’s libraries into your “libs” directory like this.

Since Corona is an Android library project, you should reference it via your “project.properties” file.  That way the Android build system will automatically include all of Corona’s libraries into your application.  Notice that this is how all of our Corona Enterprise sample projects are configured.

The only time you should include a *.jar or *.so library into your “libs” directory by hand is if it is not an Android library project.  For example, this is the case for Flurry and most ad libraries.

What I’ve mentioned above is documented on Google’s Android development website here…

   http://developer.android.com/tools/projects/index.html

I solved this issue!! 

If you have class that implements NamedJavaFunction that return “null”, you can occurred same error…