Hi guys,
My project is able to compile if I don’t add facebook. I get the apk file and able to use it on a device.
I have been following the tutorial at https://docs.coronalabs.com/daily/plugin/facebook-v4/index.html and also sent the command ‘android update project --path /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/’
I get the compilation error below when I "./build.sh $ANDROID_HOME
-pre-compile: -compile: [javac] Compiling 154 source files to /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/bin/classes [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/AccessToken.java:559: illegal start of type [javac] ArrayList\<String\> permissionsList = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/AccessTokenManager.java:224: illegal start of type [javac] final Set\<String\> permissions = new HashSet\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/AccessTokenManager.java:225: illegal start of type [javac] final Set\<String\> declinedPermissions = new HashSet\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/AttributionIdentifiers.java:255: illegal start of type [javac] private final BlockingQueue\<IBinder\> queue = new LinkedBlockingDeque\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/CallbackManagerImpl.java:37: illegal start of type [javac] private static Map\<Integer, Callback\> staticCallbacks = new HashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/CallbackManagerImpl.java:71: illegal start of type [javac] private Map\<Integer, Callback\> callbacks = new HashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/CollectionMapper.java:63: illegal start of type [javac] List\<T\> keys = new LinkedList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/FacebookRequestErrorClassification.java:169: illegal start of type [javac] Map\<Integer, Set\<Integer\>\> items = new HashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/FacebookRequestErrorClassification.java:182: illegal start of type [javac] subcodes = new HashSet\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/NativeAppCallAttachmentStore.java:112: illegal start of type [javac] List\<File\> filesToCleanup = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/NativeProtocol.java:772: illegal start of type [javac] TreeSet\<Integer\> allAvailableVersions = new TreeSet\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/ProfileInformationCache.java:37: illegal start of type [javac] new ConcurrentHashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/Utility.java:961: illegal start of type [javac] ArrayList\<String\> result = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/Utility.java:971: illegal start of type [javac] Set\<String\> result = new HashSet\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/internal/Utility.java:1243: illegal start of type [javac] Map\<String, String\> map = new HashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/login/LoginClient.java:493: illegal start of type [javac] ArrayList\<String\> permissionsList = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/login/LoginManager.java:356: illegal start of type [javac] this.pendingLoggingExtras = new HashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/LegacyNativeDialogParameters.java:106: illegal start of type [javac] params.putStringArrayList(ShareConstants.LEGACY\_PHOTOS, new ArrayList\<\>(imageUrls)); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/LegacyNativeDialogParameters.java:152: illegal start of type [javac] new ArrayList\<\>(peopleIds)); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/LikeActionController.java:117: illegal start of type [javac] new ConcurrentHashMap\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/LikeDialog.java:101: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/NativeDialogParameters.java:109: illegal start of type [javac] params.putStringArrayList(ShareConstants.PHOTOS, new ArrayList\<\>(imageUrls)); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/ShareInternalUtility.java:305: illegal start of type [javac] ArrayList\<NativeAppCallAttachmentStore.Attachment\> attachments = new ArrayList\<\>(1); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/ShareInternalUtility.java:317: illegal start of type [javac] final ArrayList\<NativeAppCallAttachmentStore.Attachment\> attachments = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/ShareInternalUtility.java:368: illegal start of type [javac] actionJSON.put("tags", new ArrayList\<\>(peopleIdSet)); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/ShareInternalUtility.java:475: illegal start of type [javac] return new Pair\<\>(namespace, fieldName); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/ShareInternalUtility.java:605: illegal start of type [javac] new GraphRequest.ParcelableResourceWithMimeType\<\>(descriptor, "image/png"); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/ShareInternalUtility.java:645: illegal start of type [javac] new GraphRequest.ParcelableResourceWithMimeType\<\>(imageUri, "image/png"); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/internal/VideoUploader.java:96: illegal start of type [javac] private static Set\<UploadContext\> pendingUploads = new HashSet\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/model/GameRequestContent.java:71: illegal start of type [javac] this.suggestions = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/model/SharePhoto.java:206: illegal start of type [javac] final List\<SharePhoto\> list = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/model/SharePhoto.java:214: illegal start of type [javac] final List\<SharePhoto\> list = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/widget/AppInviteDialog.java:179: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/widget/CreateAppGroupDialog.java:156: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/widget/GameRequestDialog.java:176: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/widget/JoinAppGroupDialog.java:155: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/widget/MessageDialog.java:155: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] /Applications/CoronaEnterprise/Plugins/sdk-facebook/android/4.5.0/facebook/src/com/facebook/share/widget/ShareDialog.java:223: illegal start of type [javac] ArrayList\<ModeHandler\> handlers = new ArrayList\<\>(); [javac] ^ [javac] 38 errors BUILD FAILED /Users/XXX/Library/Android/sdk/tools/ant/build.xml:597: The following error occurred while executing this line: /Users/XXX/Library/Android/sdk/tools/ant/build.xml:716: The following error occurred while executing this line: /Users/XXX/Library/Android/sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Any ideas ?
Thanks