corwin42 Expert Licensed User Longtime User May 19, 2016 #1 I have a project that uses Google Analytics. If I use Code: Copy #ExcludeClasses: .measurement it seems that the analytics classes get removed: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/analytics/GoogleAnalytics; Click to expand... Any idea why this happens? Of course I have NOT excluded .analytics. Are there any dependencies?
I have a project that uses Google Analytics. If I use Code: Copy #ExcludeClasses: .measurement it seems that the analytics classes get removed: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/analytics/GoogleAnalytics; Click to expand... Any idea why this happens? Of course I have NOT excluded .analytics. Are there any dependencies?
Erel B4X founder Staff member Licensed User Longtime User May 19, 2016 #2 corwin42 said: Are there any dependencies? Click to expand... Probably. NoClassDefFoundError errors can be confusing. This can happen if the class inherits from a missing class or there is a static field of a missing class. Check the unfiltered logs. There might be more information. Upvote 0
corwin42 said: Are there any dependencies? Click to expand... Probably. NoClassDefFoundError errors can be confusing. This can happen if the class inherits from a missing class or there is a static field of a missing class. Check the unfiltered logs. There might be more information.
corwin42 Expert Licensed User Longtime User May 19, 2016 #3 Argh. Tried to update to Google Play Services Revision 30 and it seems that they broke it: https://stackoverflow.com/questions...e-play-services-libproject-folder-after-updat Play services library is gone from SDK when updating to r30. Upvote 0
Argh. Tried to update to Google Play Services Revision 30 and it seems that they broke it: https://stackoverflow.com/questions...e-play-services-libproject-folder-after-updat Play services library is gone from SDK when updating to r30.
corwin42 Expert Licensed User Longtime User May 19, 2016 #4 Back on Play Services Rev. 29. Even in the unfiltered logs I can't see more. It seems that excluding .measurement also exludes analytics classes. I have no idea why. Is it possible to enable additional logs so I can see which classes are exactly removed with the #ExcludeClasses attribute? Upvote 0
Back on Play Services Rev. 29. Even in the unfiltered logs I can't see more. It seems that excluding .measurement also exludes analytics classes. I have no idea why. Is it possible to enable additional logs so I can see which classes are exactly removed with the #ExcludeClasses attribute?
Erel B4X founder Staff member Licensed User Longtime User May 19, 2016 #5 ExcludeClasses excludes classes based on the prefix. It doesn't do anything sophisticated. I plan to provide a tool that will be able to work with the maven repositories. It will make it simpler. Upvote 0
ExcludeClasses excludes classes based on the prefix. It doesn't do anything sophisticated. I plan to provide a tool that will be able to work with the maven repositories. It will make it simpler.