| 1234567891011121314151617181920 |
- 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.
- Libraries need to be listed in Engine's "CE Editor C++.cpp" file, "CChar8 *android_libs[]=".
- Google Play Services libs were copied from Android SDK in the following way:
- 1. open "SDK Manager.exe"
- 2. download "Google Repository" (and not "Google Play Services")
- 3. go to "AndroidSDK\extras\google\m2repository\com\google\android\gms"
- 4. extract required libs from *.aar files (they are actually ZIP files and can be opened using WinRar) into "Editor Data\Code\Android"
- 5. create empty "src" folders in each library (without this empty folder, compilation will fail)
- 6. move "classes.jar" in each library to "bin/classes.jar" (linker expects it to be in that location)
- After adding all libraries, they need to be "updated" with the console command, that needs to be executed from each library path location:
- D:\Progs\AndroidSDK\tools\android update lib-project --path . --target X
- where X can be obtained from:
- D:\Progs\AndroidSDK\tools\android list targets
- 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
- C:\Esenthel\Editor\Bin\Android\Ant\bin\ant clean
- C:\Esenthel\Editor\Bin\Android\Ant\bin\ant release
|