Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Building Mobile SDK LifeRay
Hey guys!
I'm trying to build Mobile SDK yesterday, but i got
a issue anyone know how to fix it . Thank you!
Here is my Command:
Quang Truong@QuangTruong-PC MINGW64
/e/Android/AnroidProject/liferay-mobile-sdk - Copy/liferay-mobile-sdk
(builder-7.0.0)
$ ./gradlew createModule --no-daemon
:createModule
Error while getting console.
:builder:compileJavawarning: [options] bootstrap class path not set in
conjunction with -source 1.6
1 warning
:builder:processResources
:builder:classes
:builder:jar
:generateAug 25, 2018 4:04:29 PM
com.liferay.mobile.sdk.SDKBuilder main
SEVERE:
org.json.JSONException: JSONObject["basePath"] not
found.
java.io.IOException: org.json.JSONException:
JSONObject["basePath"] not found.
at
com.liferay.mobile.sdk.http.DiscoveryResponseHandler.handleResponse(DiscoveryResponseHandler.java:38)
at
com.liferay.mobile.sdk.http.DiscoveryResponseHandler.handleResponse(DiscoveryResponseHandler.java:28)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1142)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1076)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1050)
at
com.liferay.mobile.sdk.SDKBuilder.discover(SDKBuilder.java:126)
at
com.liferay.mobile.sdk.SDKBuilder.build(SDKBuilder.java:75)
at
com.liferay.mobile.sdk.SDKBuilder.main(SDKBuilder.java:53)
Caused by: org.json.JSONException: JSONObject["basePath"]
not found.
at
org.json.JSONObject.get(JSONObject.java:473)
at
org.json.JSONObject.getString(JSONObject.java:654)
at
com.liferay.mobile.sdk.http.Discovery.<init>(Discovery.java:33)
at
com.liferay.mobile.sdk.http.DiscoveryResponseHandler.handleResponse(DiscoveryResponseHandler.java:35)
... 7 more
BUILD SUCCESSFUL
Total time: 17.473 secs
The problem is this issue... if you can path your liferay-portal to the latest hotfix (or FP1) or rebuild the portal with the changes. If not... we can see alternatives to avoid the problem.