Manually add library into android-studio[libgdx]

app.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.terminalvelocity.loadspacewar"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':libs:gdx')
    compile project(':libs:gdx-audio')
    compile project(':libs:gdx-bullet')
    //compile project(':libs:gdx-controllers')
    compile project(':libs:gdx-freetype')
    compile project(':libs:gdx-gleed')
    compile project(':libs:gdx-image')
    compile project(':libs:gdx-jnigen')
    //compile project(':libs:gdx-remote')
    compile project(':libs:gdx-setup-ui')
    //compile project(':libs:gdx-texturepacker-gui')
    compile project(':libs:gdx-tiled-preprocessor')
    //compile project(':libs:model-loaders')
    //compile project(':libs:box2d-editor')
    compile project(':libs:gdx-backend-android')
    compile project(':libs:gdx-backend-iosmonotouch')
    compile project(':libs:gdx-backend-lwjgl')
    compile project(':libs:gdx-backends-gwt')
    compile project(':libs:gdx-openal')
}

setting.gradle

include ':app', ':libs:gdx',':libs:gdx-audio',':libs:gdx-bullet',':libs:gdx-controllers',
        ':libs:gdx-freetype',':libs:gdx-gleed',':libs:gdx-image',':libs:gdx-jnigen',':libs:gdx-remote',
        ':libs:gdx-setup-ui',':libs:gdx-texturepacker-gui',':libs:gdx-tiled-preprocessor',':libs:gdx-tools',
        ':libs:model-loaders',':libs:box2d-editor',':libs:gdx-backend-android',':libs:gdx-backend-iosmonotouch',
        ':libs:gdx-backend-lwjgl',':libs:gdx-backends-gwt',':libs:gdx-openal',':libs:gdx-controllers:gdx-controllers',
        ':libs:gdx-controllers:gdx-controllers-android',':libs:gdx-controllers:gdx-controllers-desktop',':libs:gdx-controllers:gdx-controllers-gwt',
        ':libs:model-loaders:model-loaders',':libs:model-loaders:model-loaders'

[SOLVED] how to embed libgdx android into android sdk.

add this line code into your gradle [app]

        compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
        compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
        compile "com.badlogicgames.gdx:gdx-controllers-android:$gdxVersion"
        compile "com.badlogicgames.ashley:ashley:$ashleyVersion"
        compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
        compile "com.badlogicgames.gdx:gdx-bullet:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-x86"
        compile "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
        compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
        testCompile 'junit:junit:4.12'

after this you will be sync again.. and boaalaaa.. :)

\apache\library\Zend\Http\Client\Adapter\Socket.php on line 235 [solved]

change on c:\xampp\apache\library\zend\http\client.php

    protected $config = array(
        'maxredirects'    => 5,
        'strictredirects' => false,
        'useragent'       => 'Zend_Http_Client',
        'timeout'         => 10,
        'adapter'         => 'Zend_Http_Client_Adapter_Socket',
        'httpversion'     => self::HTTP_1,
        'keepalive'       => false,
        'storeresponse'   => true,
        'strict'          => true,
        'output_stream'   => false,
        'encodecookies'   => true,
        'rfc3986_strict'  => false
    );

to

    protected $config = array(
        'maxredirects'    => 5,
        'strictredirects' => false,
        'useragent'       => 'Zend_Http_Client',
        'timeout'         => 10,
        'adapter'         => 'Zend_Http_Client_Adapter_Proxy',
        'httpversion'     => self::HTTP_1,
        'keepalive'       => false,
        'storeresponse'   => true,
        'strict'          => true,
        'output_stream'   => false,
        'encodecookies'   => true,
        'rfc3986_strict'  => false
    );

how to compile jrxml or jasper via jasperstarter example command

Langsung saja ke command lagi nggak mute nulis:

Decription command:
-f = Format report
-p = Parameter (parameter yg bisa dmasukkan nilai).
-t = Jenis database
-H = host
-u = username
-p = password
–db-sid = sid dari database jika memakai oracle
–db-driver = driver database
–jdbc-dir = jar dari jdbc.


jasperstarter pr BlankReport.jrxml -f pdf -P status=3 -t oracle -H 172.16.1.xx -u asxx -p jatixxxx --db-sid orcl --db-driver oracle.jdbc.driver.OracleDriver --db-url jdbc:oracle:thin://172.16.1.xx:1521:orxx --jdbc-dir jdbc

[SOLVED] Problem native andengine with box2d[libgdx]

if you got problem like this:

/AndroidRuntime(1xx): FATAL EXCEPTION: UpdateThread
/AndroidRuntime(1xx): Couldn't load andenginephysicsbox2dextension from loader dalvik.system.PathClassLoader

to resolve this problem you can create folder jniLibs inside AndEnginePhysicsBox2DExtension-GLES2 and after that you will copy folder armeabi, armeabi-v7a and x86 into it. Before you copy folder into jniLibs i suggest you build your AndEnginePhysicsBox2DExtension. After all finished you can open build.gradle on AndEnginePhysicsBox2DExtension and add this line:

    sourceSets.main {
        jniLibs.srcDir 'src/main/jniLibs'
        jni.srcDirs = [] //disable automatic ndk-build call
    }

ok build your project and boalaaa… error have gone…

Screenshot from 2015-04-12 20:33:49