RE: Building Mobile SDK LifeRay

Duong Truong, modified 7 Years ago. New Member Post: 1 Join Date: 8/25/18 Recent Posts

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

thumbnail
Javier Gamarra, modified 7 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts

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.