cancel
Showing results for 
Search instead for 
Did you mean: 

issue on compiling alfresco android version

andy2_0
Champ in-the-making
Champ in-the-making
Hi

I fillowed the updated wiki page (as below) to import Alfresco Android version and compile it.
https://wiki.alfresco.com/wiki/Android_:_Setup_Eclipse_Dev_Environment

I got the error message:

Failed to execute goal on project alfresco-mobile-android-commons: Could not resolve dependencies for project org.alfresco.mobile.android.apps:alfresco-mobile-android-commons:apklib:1.4.0: The following artifacts could not be resolved: android:android:jar:4.4.2_r2, com.google.android.annotations:annotations:jar:22.3: Failure to find android:android:jar:4.4.2_r2 in https://repository.apache.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-repository has elapsed or updates are forced -> [Help 1]

I checked the files and found it's failed to download the following 3 files to local
android.android.android-4.4.2_r2.jar
com.google.android.annotations.annotations-22.3.jar
android.support.compatibility-v13.compatibility-v13-r18.jar

I googled internet and can only find just one file (com.google.android-4.4.2.jar) of the above three.

So anyboby please help resolve this issue, or

possible to send the 3 jar files and a pom.xml file to my mail-box: yang_zhj(at)hotmail.com

Thanks a lot!




5 REPLIES 5

jm_pascal
Star Contributor
Star Contributor
Aloah,

https://wiki.alfresco.com/wiki/Android_Maven_Repository explains how to setup your maven repository to retrieve those missing dependency. Particularly look at Android SDK Deployer at https://github.com/mosabua/maven-android-sdk-deployer#how-to-use

FYI by default, Android artifacts are not published by Google on Maven Central. That explains why you have to setup your maven environment first as described previously.

andy2_0
Champ in-the-making
Champ in-the-making
Hi Pascal, thanks for your support, it works!

andy2_0
Champ in-the-making
Champ in-the-making
Hi Pascal

I want to work the iOS app out as well, do you have a similar wiki guideline?  Thanks!

mikeh
Star Contributor
Star Contributor
Is there a specific problem you have with compiling the iOS app? If so, please post the query in a separate topic.

Thanks,
Mike

andy2_0
Champ in-the-making
Champ in-the-making
No. just want to follow a proven guideline to save time    🙂

Thanks!