Fixed
Status Update
Comments
br...@google.com <br...@google.com> #2
This error shows up when there is a module in your project whose .iml file does not contain:
external.system.id ="GRADLE"
Can you please check your .iml files? Also, instead of opening the project, *import* it, that will completely rewrite your .iml files and you won't see that error again.
Can you please check your .iml files? Also, instead of opening the project, *import* it, that will completely rewrite your .iml files and you won't see that error again.
se...@gmail.com <se...@gmail.com> #3
I can confirm that it works with AS 0.8.14 if I do
1) open AS,
2) delete the Gradle Java modules from the project,
3) re-import the Gradle Java modules to the project,
4) close AS,
5) re-open AS.
In that case AS does not *not* complain about Gradle Java modules to be non-Gradle Java modules, and I've confirmed that the generated *.iml files containexternal.system.id ="GRADLE".
However, if I do
6) close AS,
7) delete the *.iml files,
8) re-open AS,
then AS again complains *although* the generates files again containexternal.system.id ="GRADLE". It seems that the problem is related to "open" vs. "import". In the latter instructions, the *.iml files seem to get implicitly generated because the Gradle Java modules are referred to from setting.gradle.
Can it be that AS is somehow performing the check for non-Gradle Java modules before the *.iml files are generated in case of just opening (instead of importing) the project?
1) open AS,
2) delete the Gradle Java modules from the project,
3) re-import the Gradle Java modules to the project,
4) close AS,
5) re-open AS.
In that case AS does not *not* complain about Gradle Java modules to be non-Gradle Java modules, and I've confirmed that the generated *.iml files contain
However, if I do
6) close AS,
7) delete the *.iml files,
8) re-open AS,
then AS again complains *although* the generates files again contain
Can it be that AS is somehow performing the check for non-Gradle Java modules before the *.iml files are generated in case of just opening (instead of importing) the project?
se...@gmail.com <se...@gmail.com> #4
I see what is happening now. Yes, you are right. This is an issue with "open". I think I know how to fix this issue.
br...@google.com <br...@google.com> #5
Thanks for the confirmation. On a more or less related note, as this would not have happened if I was committing the *.iml files, what is your recommendation WRT this? I know about [1] which recommends to share "All the .iml module files", but it's kind of annoying that these files get rewritten if e.g. dependencies change in build.gradle. In general, most of the *.iml files seem to be duplicate content WRT the build.gradle files and can be derived from them. So, should we commit *.iml files for Gradle Android modules to Git?
[1]https://intellij-support.jetbrains.com/entries/23393067
[1]
se...@gmail.com <se...@gmail.com> #6
It is better not to add iml files to source control. For regular IDEA projects is OK because .iml files are the source of truth for project configuration. In the case of Android projects, the source of truth is gradle.build files, and .iml are generated from them every time you sync your project with Gradle.
Description
pod 'GoogleMaps', '= 2.1.0'
pod 'Firebase/Core'
pod 'Firebase/AdMob'
a clean build of the project produce this error:
duplicate symbol __ZN8farmhash13Fingerprint32EPKcm in:
/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/FirebaseCore(farmhash_71acb1913cf19d99bd791946e66c66e2.o)
/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMaps.framework/GoogleMaps
duplicate symbol __ZN8farmhash13Fingerprint64EPKcm in:
/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/FirebaseCore(farmhash_71acb1913cf19d99bd791946e66c66e2.o)
/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMaps.framework/GoogleMaps
duplicate symbol __ZN8farmhash14Fingerprint128EPKcm in:
/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/FirebaseCore/Frameworks/frameworks/FirebaseCore.framework/FirebaseCore(farmhash_71acb1913cf19d99bd791946e66c66e2.o)
/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMaps.framework/GoogleMaps
ld: 3 duplicate symbols for architecture x86_64
actual command line:
Ld /Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Products/Debug-iphonesimulator/TutorTracker.app/TutorTracker normal x86_64
cd /Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -L/Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Products/Debug-iphonesimulator -L/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/GoogleAnalytics -F/Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Products/Debug-iphonesimulator -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/FirebaseAnalytics/Frameworks/frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/FirebaseCore/Frameworks/frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/FirebaseInstanceID/Frameworks/frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/Google-Mobile-Ads-SDK/Frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleInterchangeUtilities/Frameworks/frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleMaps/Subspecs/Base/Frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleMaps/Subspecs/Maps/Frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleSymbolUtilities/Frameworks/frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods/Pods/GoogleUtilities/Frameworks/frameworks -F/Volumes/Data/Users/sergio/Xcode/Projects/Tutor/TutorTracker.Pods -filelist /Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Intermediates/TutorTracker.build/Debug-iphonesimulator/TutorTracker.build/Objects-normal/x86_64/TutorTracker.LinkFileList -mios-simulator-version-min=8.0 -Xlinker -object_path_lto -Xlinker /Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Intermediates/TutorTracker.build/Debug-iphonesimulator/TutorTracker.build/Objects-normal/x86_64/TutorTracker_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -all_load -licucore -ObjC -ObjC -lc++ -lsqlite3 -lz -framework AVFoundation -framework Accelerate -framework AddressBook -framework AudioToolbox -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreText -framework CoreVideo -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GLKit -framework GoogleInterchangeUtilities -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -framework GoogleMobileAds -framework GoogleSymbolUtilities -framework GoogleUtilities -framework ImageIO -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework AdSupport -weak_framework SafariServices -weak_framework WebKit -framework CrashReporter -framework Accelerate -framework MediaPlayer -framework CoreMotion -framework StoreKit -framework SafariServices -framework CoreBluetooth -framework CoreVideo -framework CoreMedia -lsqlite3 -framework EventKit -framework EventKitUI -framework CoreTelephony -framework AdSupport -framework CoreText -framework GLKit -framework ImageIO -lc++ -licucore -framework OpenGLES -lz -framework AddressBook -framework MessageUI -lGoogleAnalyticsServices -framework AudioToolbox -framework Security -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework CoreLocation -framework SystemConfiguration -framework AVFoundation -framework QuartzCore -lPods-TutorTracker -Xlinker -dependency_info -Xlinker /Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Intermediates/TutorTracker.build/Debug-iphonesimulator/TutorTracker.build/Objects-normal/x86_64/TutorTracker_dependency_info.dat -o /Volumes/Data/Users/sergio/Library/Developer/Xcode/DerivedData/TutorTracker-fgegagbvybxhfodigkkifzillkrv/Build/Products/Debug-iphonesimulator/TutorTracker.app/TutorTracker