Android studio with libgdx and android libraries -


i'm trying import eclipse project android studio libgdx. project has multiple library dependencies. structure follows: androidlib1 -> androidlib2 -> appproject

i'm not using libgdx multi-platform in eclipse added resources androidlib1. need libraries , project familiar libgdx resources.

in eclipse works great. in android studio once run app , start libgdx activity receive exception:

11-27 13:49:26.170  14721-14721/? e/rpc-﹕ caused by: com.badlogic.gdx.utils.gdxruntimeexception: couldn't load shared library 'gdx' target: linux, 32-bit 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ @ com.badlogic.gdx.utils.sharedlibraryloader.load(sharedlibraryloader.java:117) 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ @ com.badlogic.gdx.utils.gdxnativesloader.load(gdxnativesloader.java:34) 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ @ com.badlogic.gdx.backends.android.androidfragmentapplication.<clinit>(androidfragmentapplication.java:48) 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ ... 19 more 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ caused by: java.lang.unsatisfiedlinkerror: couldn't load gdx: findlibrary returned null 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ @ java.lang.runtime.loadlibrary(runtime.java:365) 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ @ java.lang.system.loadlibrary(system.java:535) 11-27 13:49:26.170  14721-14721/? e/rpc-﹕ @ com.badlogic.gdx.utils.sharedlibraryloader.load(sharedlibraryloader.java:113) 

i think reason androidlib2 , appproject not linked somehow gdx.jar. androidlib1 linked too. if try , link appproject gdx.jar receive compile error of duplicate resources or that.

note, gdx.jar java jar...

anyone have idea how work?

thanks.

added project gradle file:

// top-level build file can add configuration options common sub-projects/modules. buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.14+'     } }  allprojects {      version = '1.0'     ext {         gdxversion = '1.3.1'         robovmversion = '1.0.0-alpha-04'         box2dlightsversion = '1.3'         ashleyversion = '1.3.1'         aiversion = '1.3.1'     }      repositories {         mavencentral()         maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }         maven { url "https://oss.sonatype.org/content/repositories/releases/" }     } }  project(":androidlib1") {     apply plugin: 'android-library'      configurations { natives }      dependencies {         compile "com.badlogicgames.gdx:gdx:$gdxversion"         compile "com.badlogicgames.gdx:gdx-freetype:$gdxversion"         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"         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"     } } 


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -