Coder Social home page Coder Social logo

Comments (7)

uerceg avatar uerceg commented on August 12, 2024

@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.

zwacky avatar zwacky commented on August 12, 2024

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.

uerceg avatar uerceg commented on August 12, 2024

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.

zwacky avatar zwacky commented on August 12, 2024

hey @uerceg, that was exactly the issue. thanks for your fast response!
big 👍 for adjust

from cordova_sdk.

zwacky avatar zwacky commented on August 12, 2024

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.

uerceg avatar uerceg commented on August 12, 2024

@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.

zwacky avatar zwacky commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.