Adding New Android Libraries.txt 1.3 KB

1234567891011121314151617181920
  1. Android Libraries are added into "Editor Data\Code\Android" which are then packed into "Editor.pak" and extracted by the Editor to "_Build_/_Android_" when compiling for Android platform.
  2. Libraries need to be listed in Engine's "CE Editor C++.cpp" file, "CChar8 *android_libs[]=".
  3. Google Play Services libs were copied from Android SDK in the following way:
  4. 1. open "SDK Manager.exe"
  5. 2. download "Google Repository" (and not "Google Play Services")
  6. 3. go to "AndroidSDK\extras\google\m2repository\com\google\android\gms"
  7. 4. extract required libs from *.aar files (they are actually ZIP files and can be opened using WinRar) into "Editor Data\Code\Android"
  8. 5. create empty "src" folders in each library (without this empty folder, compilation will fail)
  9. 6. move "classes.jar" in each library to "bin/classes.jar" (linker expects it to be in that location)
  10. After adding all libraries, they need to be "updated" with the console command, that needs to be executed from each library path location:
  11. D:\Progs\AndroidSDK\tools\android update lib-project --path . --target X
  12. where X can be obtained from:
  13. D:\Progs\AndroidSDK\tools\android list targets
  14. precompiling can be performed, HOWEVER it actually SLOWS DOWN building of apps when they're built 2nd or more time, so don't do it
  15. C:\Esenthel\Editor\Bin\Android\Ant\bin\ant clean
  16. C:\Esenthel\Editor\Bin\Android\Ant\bin\ant release