我已经安装了 SDK,当我在 eclipse 中执行示例应用程序时,我在像这样登录到 salesforce 时遇到错误
不安全的 JavaScript 尝试使用 URL 访问框架https://login.salesforce.com/?ec=302&startURL=%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_Sfo0mo2n3jvu8IfPosBnmPsp1pafeNjQPGSngZvcMpAyNsTC62PxX8rVEu.GK3O6Y3FWwqTYFhIu97eeHIM4ca76Rj0rms8wRYPaZ_Bn7qxXKSKMr9ZfcNx3ypToLFS0IGq51_Ud09ujxJLb4N82smXIx37QNpk1hMmwZSSg7NYgF6VRdhQDfWZxb85wCOHMy9aNm0zOes_XhH3xWqL28AvaSP4_NC4esWw_0TkP51agEmNZuFoz64RqwxExwiKtXhaNBbhTTaePLkdlCT6aXnmIMTSkoekmQZqjCBsU74H8dgWjZHbZTpBhWXVbM5sr0f3JnWlmpKAJWYXym7s%253D%26display%3Dtouch%26sdtd%3D1&display=touch&sdtd=1
从带有 URL https://www.salesforce.com/login-messages/messages.html?r=https%3A%2F%2Flogin.salesforce.com%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_Sfo0mo2n3jvu8IfPosBnmPsp1pafeNjQPGSngZvcMpAyNsTC62PxX8rVEu.GK3O6Y3FWwqTYFhIu97eeHIM4ca76Rj0rms8wRYPaZ_Bn7qxXKSKMr9ZfcNx3ypToLFS0IGq51_Ud09ujxJLb4N82smXIx37QNpk1hMmwZSSg7NYgF6VRdhQDfWZxb85wCOHMy9aNm0zOes_XhH3xWqL28AvaSP4_NC4esWw_0TkP51agEmNZuFoz64RqwxExwiKtXhaNBbhTTaePLkdlCT6aXnmIMTSkoekmQZqjCBsU74H8dgWjZHbZTpBhWXVbM5sr0f3JnWlmpKAJWYXym7s%253D%26display%3Dtouch%26sdtd%3D1&
noroundedcorner 的框架。域、协议和端口必须匹配。
例外:
11-11 11:23:07.239: E/AndroidRuntime(366): java.lang.NoSuchMethodError: java.lang.String.isEmpty 11-11 11:23:07.239: E/AndroidRuntime(366): at com.salesforce。 androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:378) 11-11 11:23:07.239: E/AndroidRuntime(366): at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java :1) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 android.os.AsyncTask.finish(AsyncTask.java:417) 11-11 11:23:07.239: E/AndroidRuntime(366):在 android.os.AsyncTask.access$300(AsyncTask.java:127) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) 11 -11 11:23:07.239: E/AndroidRuntime(366): 在 android.os.Handler.dispatchMessage(Handler.java:99) 11-11 11:23:07.239:E/AndroidRuntime(366): 在 android.os.Looper.loop(Looper.java:123) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 android.app.ActivityThread.main(ActivityThread.java :4627) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-11 11:23:07.239: E/AndroidRuntime(366): 在java.lang.reflect.Method.invoke(Method.java:521) 11-11 11:23:07.239: E/AndroidRuntime(366): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java :868) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-11 11:23:07.239: E/AndroidRuntime (366):在 dalvik.system.NativeStart.main(本机方法)4627) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 java .lang.reflect.Method.invoke(Method.java:521) 11-11 11:23:07.239: E/AndroidRuntime(366): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 868) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-11 11:23:07.239: E/AndroidRuntime( 366):在 dalvik.system.NativeStart.main(本机方法)4627) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 java .lang.reflect.Method.invoke(Method.java:521) 11-11 11:23:07.239: E/AndroidRuntime(366): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 868) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-11 11:23:07.239: E/AndroidRuntime( 366):在 dalvik.system.NativeStart.main(本机方法)07.239: E/AndroidRuntime(366): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 dalvik.system.NativeStart .main(本机方法)07.239: E/AndroidRuntime(366): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-11 11:23:07.239: E/AndroidRuntime(366): 在 dalvik.system.NativeStart .main(本机方法)
我认为这是一个与安全相关的错误,是通过移动设备登录所需的任何权限。