Error: Error: String / photoPickerNotFoundText found more than once

I am trying to import this project in Android Studio 1.0.1
https://github.com/android/platform_packages_apps_contacts

When I create the application, it shows these two errors:

* Error: execution failed for task ': app: mergeDebugResources'.
* C: \ Users \ vinz \ AndroidStudioProjects \ platform_packages_apps_contacts-master \ app \ src \ main \ res \ values ​​\ strings.xml: Error: String / photoPickerNotFoundText found more than once

Interestingly, what is wrong with this source code provided by Google. I tried to remove the line ids as well as change the names, but nothing works.

+6
source share
1 answer

It contains an error ( https://code.google.com/p/android/issues/detail?id=57020 ) when someone from Google provides a pretty good answer.

The package you contacted is one of the packages contained in the Android Open Source Project (AOSP), and is usually created by the AOSP build system (not Android Studio or Eclipse). Thus, it may contain things that Android Studio cannot process (for example, duplicate lines and links to hidden APIs).

Basically, a duplicate line is what the Android build system (AOSP) handles internally through post-processing and is usually not allowed in normal application projects.

You can probably get around this, but a little modification of the sources may be required.

+11
source

Source: https://habr.com/ru/post/979831/


All Articles