我只是更新了我的应用程序中的cordova + ionic,之后我通过Android SDK manager成功安装了Android-SDK v22。 但是在运行命令之后: cordova build android 我总是得到以下消息: Running command: /Users/peter/workspace/myapp/platforms/android/cordova/build [Error: Please install Android target: "android-21". Hint: Open the SDK manager by running: /Users/peter/adt-bundle-mac/sdk/tools/android You will require: 1. "SDK Platform" for android-21 2. "Android SDK Platform-tools (latest) 3. "Android SDK Build-tools" (latest)] ERROR building one of the platforms: Error: /Users/peter/workspace/myapp/platforms/android/cordova/build: Command […]
我正在写一个应用程序,其中我使用Hackbook示例代码获取Facebook朋友列表,但现在我想要获取Facebook朋友在本月的生日列表,以获得我使用此代码的所有朋友列表: public static void requestFriends(FacebookRequest facebookRequest) { Log.d(LOG_TAG, "requestFriends(" + ")"); String query = "select name, birthday, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by birthday_date"; Bundle params = new Bundle(); params.putString("method", "fql.query"); params.putString("query", query); FacebookUtility.asyncRunner.request(null, params, new FacebookRequestListener(FacebookRequestListener.FRIENDS, facebookRequest)); } 我仍然使用下面的代码来获取本月生日的朋友列表: Calendar c = Calendar.getInstance(); int month […]