Open nareshsvn opened 5 years ago
After step (1) you forgot to initialize the Git submodules:
cd SDKLauncher-Android && git submodule update --init --recursive
Then, use the branch feature/latest-working-build-config
for your cloned SDKLauncher-Android
Git repository, and follow the advice in this Pull Request:
https://github.com/readium/SDKLauncher-Android/pull/147
Same for readium-sdk
(pay attention to the Java versions):
https://github.com/readium/readium-sdk/pull/317
Same for readium-lcp-client
:
https://github.com/readium/readium-lcp-client/pull/49
I hope this helps you. It did help me :) (I created the PRs)
Thanks for your very quick support,
I tried to build the project as per your suggestion in this process I encountered another issue.
I listed steps I followed and please let me know where I went wrong in integration?
Steps followed to build the project:
I cloned the code using "git clone --recursive https://github.com/readium/SDKLauncher-Android.git"
cd SDKLauncher-Android && git submodule update --init --recursive
I opened this code from android studio and from android studio I shifted to "I opened this code from android studio and from android studio I shifted to "feature/latest-working-build-config" branch from "master" branch." branch from "master" branch.
Added local.properties files for SDK-Launcher , readium-sdk, redium-lcp-client. (readium/SDKLauncher-Android#147, readium/readium-sdk#317, #49). I am using java"1.8.0_191".
I downloaded readium-lcp-client code from github and I put that code into readium-lcp-client folder, I run following commands under SDKLauncher-Android\readium-lcp-client-master\platform\android
a) $ ./gradlew clean
output:
FAILURE: Build failed with an exception.
What went wrong: Task 'clean' not found in root project 'android'.
Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.239 secs
b) $ ./gradlew build - successful
output:
couldn't find "liblcp.so"
Crash log:
2018-11-29 11:21:29.662 11377-11377/org.readium.sdk.android.launcher E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.readium.sdk.android.launcher, PID: 11377
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.readium.sdk.android.launcher-2/base.apk"],nativeLibraryDirectories=[/data/app/org.readium.sdk.android.launcher-2/lib/arm, /data/app/org.readium.sdk.android.launcher-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "liblcp.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:972)
at java.lang.System.loadLibrary(System.java:1567)
at org.readium.sdk.lcp.ServiceFactory.
Hi,
Android issue: I am new to lcp . When I integrated lcp-client into readium library i am facing following issue.
issue description: Plugin with id 'com.android.model.library' not found. (build.gradle which is there in lcp-client module).
Steps I followed for the lcp integration into readium-1:
I cloned the code using "git clone --recursive https://github.com/readium/SDKLauncher-Android.git"
I opened this code from android studio and from android studio I shifted to "feature/lcp" branch from "master" branch.
Here I found a readium-lcp-client folder which is empty.
I downloaded readium-lcp-client code from github and I put that code into readium-lcp-client folder(step 3).
I tapped on sync button. Then I can see the above mentioned error.
Could please help me what went wrong in integration ?
Many Thanks, Naresh