Closed timanrebel closed 9 years ago
This is caused by a conflict between the bundled R class in Mixpanel and the one generated by Titanium. It's exactly the same kind of issue that I had with the Titanium Mapbox SDK.
Try removing the included R.java and add the following to the module manifest:
respackage: com.mixpanel.android
Ah, that was what you meant in the email. Thanks! Trying that right now
Eureka!
Will clean up, do some more tests and create a PR asap!
Awesome! :D
I just found out I implemented time tracking for iOS as well, but my commits are all mixed into each other. Will redo the changes and create 2 PR's tomorrow!
@timanrebel @mrlundis
I am having this issue with a module I am trying to create. Could you please help with this? I am new to it so I did not understand what you meant on this comment below. How exactly do I remove the R class? Where on the manifest do insert the line you suggested?
This is caused by a conflict between the bundled R class in Mixpanel and the one generated by Titanium. It's exactly the same kind of issue that I had with the Titanium Mapbox SDK.
Try removing the included R.java and add the following to the module manifest: respackage: com.mixpanel.android
Thank you!
For Peerby I have been trying to get in-app notifications and surveys to work on both iOS and Android. In both I was unsuccessful, but luckily @inakiabt had more success with iOS.
With Android, I came a long way. I integrated the source of the Mixpanel SDK, including the assets, fixed the Ant build to prepare the source for use in the module and everything should work now, but it doesn't. It crashes on a support lib. I really could use some help to get this to work, so I can create the PR and get it to work on Android as well
My code is on: https://github.com/timanrebel/TiMixpanel/tree/feature/android-surveys/android
The error that I get is:
Error inflating class android.support.v7.internal.widget.ActionBarView
, which is weird, because v7 is included in Titanium. Adding the support lib to the Mixpanel module causes another error, saying the lib is duplicate.The full tracelog is: