I am trying as an absolute beginner to compile ODK Collect, to be able to
change logo and translation.
I found the instructions for setting up Eclipse too cofusing, but by using
Android Studio I am able to compile HelloWorld and make it run on my
device.
When trying to compile ODK Collect, however, I get 2 errors and 0 warnings.
I would be very grateful for any hints on how to solve this.
Here are the error messages:
Error:(46, 5) uses-sdk:minSdkVersion 7 cannot be smaller than version 8
declared in library
/home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-special/ODKCollect/build/intermediates/exploded-aar/collect.opendatakit-v1.4.5
rev 10481-special/googleplayservices_lib/unspecified/AndroidManifest.xml
Error:(46, 5) Execution failed for task ':ODKCollect:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than
version 8 declared in library
/home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-special/ODKCollect/build/intermediates/exploded-aar/collect.opendatakit-v1.4.5
rev 10481-special/googleplayservices_lib/unspecified/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms" to
force usage
I fixed the issue above by editing build.gradle and set
minSdkVersion 8
It the builds with no errors.
But when I try to generate the APK it now fails with these two errors:
Error:duplicate files during packaging of APK
/home/ehansen/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-ELITE02/ODKCollect/build/outputs/apk/ODKCollect-release-unaligned.apk
Path in archive: META-INF/LICENSE.txt
Origin 1: /home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5
rev 10481-ELITE02/ODKCollect/libs/commons-io-2.4.jar
Origin 2: /home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5
rev 10481-ELITE02/ODKCollect/libs/joda-time-2.0.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
Error:Execution failed for task ':ODKCollect:packageRelease'.
torsdag 25. juni 2015 10.59.21 UTC+2 skrev eagle følgende:
···
>
> I am trying as an absolute beginner to compile ODK Collect, to be able to
> change logo and translation.
>
> I found the instructions for setting up Eclipse too cofusing, but by using
> Android Studio I am able to compile HelloWorld and make it run on my
> device.
>
> When trying to compile ODK Collect, however, I get 2 errors and 0
> warnings.
> I would be very grateful for any hints on how to solve this.
>
> Here are the error messages:
>
> Error:(46, 5) uses-sdk:minSdkVersion 7 cannot be smaller than version 8
> declared in library
> /home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
> 10481-special/ODKCollect/build/intermediates/exploded-aar/collect.opendatakit-v1.4.5
> rev 10481-special/googleplayservices_lib/unspecified/AndroidManifest.xml
>
> Error:(46, 5) Execution failed for task ':ODKCollect:processDebugManifest'.
> > Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than
> version 8 declared in library
> /home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
> 10481-special/ODKCollect/build/intermediates/exploded-aar/collect.opendatakit-v1.4.5
> rev 10481-special/googleplayservices_lib/unspecified/AndroidManifest.xml
> Suggestion: use tools:overrideLibrary="com.google.android.gms" to
> force usage
>
We haven't gotten around to converting ODK Collect to gradle /
AndroidStudio.
···
On Thu, Jun 25, 2015 at 4:23 AM, eagle wrote:
I fixed the issue above by editing build.gradle and set
minSdkVersion 8
It the builds with no errors.
But when I try to generate the APK it now fails with these two errors:
Error:duplicate files during packaging of APK
/home/ehansen/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-ELITE02/ODKCollect/build/outputs/apk/ODKCollect-release-unaligned.apk
Path in archive: META-INF/LICENSE.txt
Origin 1:
/home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-ELITE02/ODKCollect/libs/commons-io-2.4.jar
Origin 2:
/home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-ELITE02/ODKCollect/libs/joda-time-2.0.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
Error:Execution failed for task ':ODKCollect:packageRelease'.
torsdag 25. juni 2015 10.59.21 UTC+2 skrev eagle følgende:
I am trying as an absolute beginner to compile ODK Collect, to be able to
change logo and translation.
I found the instructions for setting up Eclipse too cofusing, but by
using Android Studio I am able to compile HelloWorld and make it run on my
device.
When trying to compile ODK Collect, however, I get 2 errors and 0
warnings.
I would be very grateful for any hints on how to solve this.
Here are the error messages:
Error:(46, 5) uses-sdk:minSdkVersion 7 cannot be smaller than version 8
declared in library
/home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-special/ODKCollect/build/intermediates/exploded-aar/collect.opendatakit-v1.4.5
rev 10481-special/googleplayservices_lib/unspecified/AndroidManifest.xml
Error:(46, 5) Execution failed for task
':ODKCollect:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller
than version 8 declared in library
/home/ubuntu/AndroidStudioProjects/collect.opendatakit-v1.4.5 rev
10481-special/ODKCollect/build/intermediates/exploded-aar/collect.opendatakit-v1.4.5
rev 10481-special/googleplayservices_lib/unspecified/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms" to
force usage