![]() |
Another Plea for help building Kodi For android - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184) +---- Thread: Another Plea for help building Kodi For android (/showthread.php?tid=282526) |
Another Plea for help building Kodi For android - dknlght - 2016-07-13 Ok so I've tried to helping myself and manage to fix each of the problem up until this error so far but now I'm stuck because I can't find any post referencing the same errors. here's what I'm using: Ubuntu 14.04.4 downloaded from here http://releases.ubuntu.com/14.04/ubuntu-14.04.4-desktop-amd64.iso NDK version r10e downloaded from here https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip toolchain I assume 4.8 create with Code: ./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=/home/kodidev/Android/Toolchain/android-17 --platform=android-17 --toolchain=arm-linux-androideabi-4.8 --system=linux-x86_64 though it stated that I have successfully build the dependencies, I did notice that it generated this message while building python27-native Code: make[1]: Entering directory `/home/kodidev/kodi-android/tools/depends/native/python27-native/x86_64-linux-native' was able to successfully build Kodi up till this point $ cd $HOME/kodi-android $ make -C tools/depends/target/xbmc $ make but make apk generated this error which I assume that I'm not using the right version of java though I tried to downgrade to java version 1.6.0_27 I could only find the version 1.6.0_39 Code: Crunching PNG Files in source dir: xbmc/res Any Help would be appreciated. Since I've put a couple days into this already I really would like to get it working. P.S I'm a linux Noobie so please dumb the complicated stuff down for me ![]() RE: Another Plea for help building Kodi For android - Koying - 2016-07-13 You seem to be building using Java 8. Check what java version is actually active with "java - version" RE: Another Plea for help building Kodi For android - sensman - 2016-07-13 Hi Koying, i have similar Error, please help me ![]() Code: java -version RE: Another Plea for help building Kodi For android - Koying - 2016-07-13 (2016-07-13, 19:23)sensman Wrote: i have similar Error, please help me Yeah, right. Not related at all, not even Kodi ![]() Re-do point 3.3 (update sdk) and re-do the ./bootstrap and ./configure in tools/depends. RE: Another Plea for help building Kodi For android - Martijn - 2016-07-13 Please use pastebin.com for logs! RE: Another Plea for help building Kodi For android - sensman - 2016-07-13 @Martijn Sorry for that @Koying Thank you, thank you now it works ![]() RE: Another Plea for help building Kodi For android - dknlght - 2016-07-14 (2016-07-13, 07:48)Koying Wrote: You seem to be building using Java 8. Yes I've ran that command but nothing directly tells me what java version I have. Below is the output. I assume if I knew the details about the different java version for linux this might be enough but not sure if IcedTea6 means java 6 or not Code: java version "1.6.0_39" Here's the pastebin of the full output of the make apk http://pastebin.com/KUPYDZDT FYI if you have the the link to the specific android SDK and OpenJDK that you know works I'm willing to start from scratch and try it with those files instead RE: Another Plea for help building Kodi For android - Koying - 2016-07-14 Ah, looks like build tools 24 actually *requires* Java 8... RE: Another Plea for help building Kodi For android - sensman - 2016-07-15 Hi Koying, Have you a actually guide for compile SPMC for android. The included instructions for android are not up to date. Have unfortunately still errors in the creation of the apk file. (Build Dependancies + Building SPMC are OK!) Tested java 6 and 7 with same errors. -> "cannot find symbol import android.media.AudioDeviceInfo" What I can do , please give me instructions. Sorry for my english RE: Another Plea for help building Kodi For android - dknlght - 2016-07-15 (2016-07-14, 08:43)Koying Wrote: Ah, looks like build tools 24 actually *requires* Java 8... so does that mean it by default automatically install java 8 ? even though I did a sudo apt-get install openjdk-6-jre? What do you suggest I do? RE: Another Plea for help building Kodi For android - Koying - 2016-07-15 Nope, it means you need to install Java 8. RE: Another Plea for help building Kodi For android - dknlght - 2016-07-16 (2016-07-15, 08:00)Koying Wrote: Nope, it means you need to install Java 8. I removed openjdk 6 and install openjdk8 still no success. Same type of error but now there's more of it. I've even tried removing OpenJDK and used oracle's version of java8 still has the same error message. I also played around with setting the Java_Home variable but it had no effect. I think it would probably be easier if I can use the exact version of each component what works. originally I spent two days trying to build the dependency and it turn out I shouldn't use the latest NDK but 10e. Now i'm wondering if using the latest android SDK with the studio install is causing my problem. here's the output of the make for the kodi build http://pastebin.com/19rvx4dE and here's the output of the make apk with the error message http://pastebin.com/JU0m5cMG and below is the snippet with the error message. Code: mkdir -p tmp/res; /home/kodidev/Android/Sdk/build-tools/24.0.0/aapt c -S xbmc/res -C tmp/res; cp -r -n xbmc/res tmp/ || true RE: Another Plea for help building Kodi For android - Tolriq - 2016-07-16 Quote:unsupported class file version 52.0 This means that Android java files where compiled with Java 8 level and they must not unless using jack that I'm sure Kodi does not support yet. I'm not fluent with Kodi Android compilation for the moment but when using standard gradle compilation the needed part is : Quote: compileOptions { From a quick git search it sounds like someone must modify https://github.com/xbmc/xbmc/blob/master/tools/android/packaging/Makefile.in And add : -source 1.6 -target 1.6 (Or -source 1.7 -target 1.7) depending on needs and targets to all javac calls. But @Koying or @MrMC would be better to confirm this is the place java compilation takes place, and eventually propose a PR. RE: Another Plea for help building Kodi For android - dknlght - 2016-07-19 (2016-07-16, 12:29)Tolriq Wrote:Quote:unsupported class file version 52.0 thanks for your suggestion. It has gotten me further. I am able to build the apk but the apk seems a little smaller than the official kodi apk. also when I place the apk on the android device it doesn't have the right icon and I when I click on it to install I get "problem parsing the package" but at least I've gotten a little further. |