我的手机(htc g8 wildfire os2.1)不支持LinkedIn。

问题描述 投票:0回答:3
11-17 15:04:15.477: ERROR/AndroidRuntime(3411): ***Uncaught handler: thread main exiting due to uncaught exception*** 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ***com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceException:*** ***oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed:*** htts:///api.linkedin.com/uas/oauth/requestToken 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceImpl.getOAuthRequestToken(LinkedInOAuthServiceImpl.java:146) 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.ceosoft.alumlife.util.LinkedInAuthenticateHelper.getRequestToken(LinkedInAuthenticateHelper.java:66) 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.ceosoft.alumlife.util.LinkedInAuthenticateHelper.authenticateApp(LinkedInAuthenticateHelper.java:53) 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at ..... .... 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ***Caused by: oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: htts:///api.linkedin.com/uas/oauth/requestToken*** 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:214) 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69) 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceImpl.getOAuthRequestToken(LinkedInOAuthServiceImpl.java:138) 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ... 25 more 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ***Caused by: java.io.FileNotFoundException: https:/.//api.linkedin.com/uas/oauth/requestToken*** 11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection. .... ....

我的代码如下:

] >>private LinkedInRequestToken getRequestToken() { Log.d(TAG, "API_KEY = " + OAUTH_CONSUMER_KEY); Log.d(TAG, "SECRET_KEY = " + OAUTH_CONSUMER_SECRET ); mOauthService = LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET); Log.d(TAG, "mOauthService = LinkedInOAuthServiceFactory.getInstance()"); requestToken = mOauthService.getOAuthRequestToken(CALLBACK_URL); //this line occur error Log.d(TAG, "LinkedInRequestToken requestToken = mOauthService"); return requestToken; }

我没有权力在此处放置多个超链接。所以,我很抱歉!

注意:“ htts”表示https“ ///”是“ //”

11-17 15:04:15.477:错误/ AndroidRuntime(3411):***未捕获的处理程序:由于未捕获的异常而导致线程主退出*** 11-17 15:04:15.507:错误/ AndroidRuntime(3411): *** com.google.code.linkedinapi ....

android linkedin
3个回答
0
投票
@ samuel。不知道我是否理解您的意思。注意:“ htts”表示https,但我只是查看了Linkedin API并显示为https://api.linkedin.com/uas/oauth/requestToken

0
投票
我的时间提前了8分钟,并解决了问题,将其恢复为实时

-2
投票
答案是:
© www.soinside.com 2019 - 2024. All rights reserved.