Comments (7)
@zwacky Did you read our migrate guide? https://github.com/adjust/cordova_sdk/blob/master/doc/migrate.md
It would be really important to run our uninstall script in order to properly remove all old v3.x.x files and then install v4.0.0 of our plugin.
Give it a try and let me know if it works.
from cordova_sdk.
thanks for pointing out the migration guide (mainly removed the hook file), but it still doesn't compile with the same error. :(
i'm using [email protected]
list of the plugins (downgraded to 3.4.1 again):
com.adjust.sdk 3.4.1 "Adjust"
com.google.playservices 19.0.0 "Google Play Services for Android"
com.ionic.keyboard 1.0.4 "Keyboard"
com.phonegap.plugins.facebookconnect 0.11.0 "Facebook Connect"
cordova-plugin-crosswalk-webview 1.2.0 "Crosswalk WebView Engine"
cordova-plugin-google-analytics 0.7.2 "Google Universal Analytics Plugin"
cordova-plugin-network-information 1.0.2-dev "Network Information"
cordova-plugin-whitelist 1.0.0 "Whitelist"
de.appplant.cordova.plugin.local-notification 0.8.2dev "LocalNotification"
nl.x-services.plugins.launchmyapp 3.2.4 "Custom URL scheme"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.dialogs 0.3.0 "Notification"
org.apache.cordova.globalization 0.3.4 "Globalization"
org.apache.cordova.inappbrowser 0.6.0 "InAppBrowser"
org.apache.cordova.splashscreen 1.0.0 "Splashscreen"
org.apache.cordova.statusbar 0.1.10 "StatusBar"
org.pushandplay.cordova.apprate 1.1.7 "AppRate"
from cordova_sdk.
Okay, since you're already using Google Play Services for Android, try with this:
https://github.com/adjust/cordova_sdk/#4-google-play-services
With special focus on this part:
If you don't want to use Google Play Services in your app, you can remove them by editing plugin.xml
file of the adjust SDK plugin. Go to plugins/com.adjust.sdk
folder and open plugin.xml
file.
As part of the <platform name="android">
, you can find following line which adds Google Play Services
dependency:
<framework src="com.google.android.gms:play-services-ads:+" />
If you want to remove Google Play Services, simply remove this line, save your changes and rebuild
your app.
PS: You don't need to downgrade to v3.4.1, continue using v4.0.0 but with removing Google Play Services dependency from our plugin.
Let me know if it worked.
from cordova_sdk.
hey @uerceg, that was exactly the issue. thanks for your fast response!
big 👍 for adjust
from cordova_sdk.
did all the right alterations and now i my startup event doesn't get tracked.
in the logcat i found the following:
E/AndroidRuntime( 7727): java.lang.RuntimeException: Unable to instantiate receiver com.adjust.sdk.AdjustReferrerReceiver: java.lang.ClassNotFoundException: Didn't find class "com.adjust.sdk.AdjustReferrerReceiver" on path: DexPathList[[zip file "/data/app/com.justwatch.justwatch-1/base.apk"],nativeLibraryDirectories=[/data/app/com.justwatch.justwatch-1/lib/arm, /vendor/lib, /system/lib]]
E/AndroidRuntime( 7727): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.adjust.sdk.AdjustReferrerReceiver" on path: DexPathList[[zip file "/data/app/com.justwatch.justwatch-1/base.apk"],nativeLibraryDirectories=[/data/app/com.justwatch.justwatch-1/lib/arm, /vendor/lib, /system/lib]]
E/AndroidRuntime( 7727): Suppressed: java.lang.ClassNotFoundException: com.adjust.sdk.AdjustReferrerReceiver
E/AndroidRuntime( 8109): java.lang.RuntimeException: Unable to instantiate receiver com.adjust.sdk.AdjustReferrerReceiver: java.lang.ClassNotFoundException: Didn't find class "com.adjust.sdk.AdjustReferrerReceiver" on path: DexPathList[[zip file "/data/app/com.justwatch.justwatch-1/base.apk"],nativeLibraryDirectories=[/data/app/com.justwatch.justwatch-1/lib/arm, /vendor/lib, /system/lib]]
E/AndroidRuntime( 8109): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.adjust.sdk.AdjustReferrerReceiver" on path: DexPathList[[zip file "/data/app/com.justwatch.justwatch-1/base.apk"],nativeLibraryDirectories=[/data/app/com.justwatch.justwatch-1/lib/arm, /vendor/lib, /system/lib]]
E/AndroidRuntime( 8109): Suppressed: java.lang.ClassNotFoundException: com.adjust.sdk.AdjustReferrerReceiver
F/Adjust (31309): PRODUCTION: Adjust is running in Production mode. Use this setting only for the build that you want to publish. Set the environment to `sandbox` if you want to test your app!
E/PluginManager(31309): at com.adjust.sdk.AdjustCordova.jsonObjectToMapAdjustCordova.java:235)
E/PluginManager(31309): at com.adjust.sdk.AdjustCordova.execute(AdjustCordova.java:123)
there is an adjust-android.jar and it also holds an AdjustReferrerReceiver.class
inside.
this build is without the <framework src="com.google.android.gms:play-services-ads:+" />
in the plugin.xml.
any hints?
from cordova_sdk.
@zwacky This looks strange. Can you show me your code where you are initialising our SDK and describe the flow of this scenario which leads to these problems?
If you like, feel free to write us an email to [email protected] and we can continue our conversation in there if you don't feel like sharing code snippets from your app in public.
from cordova_sdk.
update: I created a blank new project with adjust sdk and I didn't get that message, that the AdjustReferrerReceiver.class couldn't be found. But instead I still got problems with the iOS build process - but I sent that over to [email protected].
from cordova_sdk.
Related Issues (20)
- requestTrackingAuthorizationWithCompletionHandler not opening any prompt. HOT 1
- Update the iOS SDK to 4.28.0 ASAP HOT 5
- iOS crashing on launch with: "-[UIDevice adjTrackingEnabled]: unrecognized selector sent to instance 0x600000e8d480" HOT 6
- Ad transparancy popup background is coming as black instead of app screen in ionic Cordova based application HOT 1
- CordovaError: Failed to fetch plugin https://github.com/CesarBalzer/Cordova-Plugin-BTPrinter.git HOT 1
- [ERROR] An error occurred while running subprocess cordova. HOT 1
- Cordova Sdk integration - adjust HOT 2
- Ionic 3 issue - adjustConfig.hasConversionValueUpdatedCallbackListener is not a function HOT 11
- Capacitor instructions HOT 23
- Error on Adjust.create() HOT 6
- Update Android SDK to Version 4.28.9 HOT 2
- Error on IOs : +[NSString adjJoin:]: unrecognized selector sent to class 0x7fff86500530 HOT 3
- Enabling iOS frameworks HOT 1
- Adjust.create() crashes the App with unrecognized selector sent to class HOT 4
- Build error on mac M1 with the simulator HOT 3
- Installation fails and then XCode build fails HOT 7
- Cannot get access to Adid() function - (CDVPlugin class AdjustCordova (pluginName: adjust) does not exist.) HOT 2
- Play Referrer installs - attribution problem HOT 5
- Installation tutorial incomplete
- sdk no more compatible with Google Play Store HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova_sdk.