Description
Hello,
I have tried to compile the example.
I do get no errors and the apk is generated after some code changes via Android Studio. I am not firm in Kotlin so maybe the were some incompatibilities. Unfortunately the APK crashes as soon as I click on add account "Microsoft Account".
E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: com.sixthsolution.easymicrosoftsyncadapterapp, PID: 1724 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.sixthsolution.easymssyncadapter.provider.MSContentProvider: java.lang.InstantiationException: java.lang.Class<com.sixthsolution.easymssyncadapter.provider.MSContentProvider> cannot be instantiated E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6242) E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805) E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722) E AndroidRuntime: at android.app.ActivityThread.-wrap1(Unknown Source:0) E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) E AndroidRuntime: at android.os.Looper.loop(Looper.java:164) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6494) E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) E AndroidRuntime: Caused by: java.lang.InstantiationException: java.lang.Class<com.sixthsolution.easymssyncadapter.provider.MSContentProvider> cannot be instantiated E AndroidRuntime: at java.lang.Class.newInstance(Native Method) E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6227) E AndroidRuntime: ... 10 more
Is someone able to update the code for the new versions of Kotlin and gradle etc.
Thank you very much