williamrijksen / com.williamrijksen.onesignal

Titanium Appcelerator Library for OneSignal Push Notifications Service
Other
51 stars 43 forks source link

Error with Gradle #107

Open jordanbisato opened 3 years ago

jordanbisato commented 3 years ago

When trying to build to a Android 10 using SDK10.0.GA on Windows i get the following error:


[INFO]  [GRADLE]
[INFO]  [GRADLE] > Task :app:mergeDebugJavaResource
[INFO]  [GRADLE] > Task :app:desugarDebugFileDependencies
[ERROR] [GRADLE]
[INFO]  [GRADLE] 37 actionable tasks: 37 executed
[ERROR] [GRADLE] FAILURE: Build failed with an exception.
[ERROR] [GRADLE]
[ERROR] [GRADLE] * What went wrong:
[ERROR] [GRADLE] Execution failed for task ':app:processDebugResources'.
[ERROR] [GRADLE] > In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[10.2.
[ERROR] [GRADLE]   1, 16.1.99]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
[ERROR] [GRADLE]
[ERROR] [GRADLE]   Dependency failing: com.onesignal:OneSignal:3.16.0 -> com.google.android.gms:play-services-base@[10.2.1, 16.1.99], but p
[ERROR] [GRADLE]   lay-services-base version was 17.5.0.
[ERROR] [GRADLE]
[ERROR] [GRADLE]   The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
[ERROR] [GRADLE]   ifact with the issue.
[ERROR] [GRADLE]   -- Project 'app' depends onto com.google.firebase:firebase-iid-interop@{strictly 17.0.0}
[ERROR] [GRADLE]   -- Project 'app' depends onto ti:playservices@17.5.0
[ERROR] [GRADLE]   -- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 17.5.0} [ERROR] [GRADLE]   -- Project 'app' depends onto com.williamrijksen:onesignal@3.0.0
[ERROR] [GRADLE]   -- Project 'app' depends onto com.google.android.gms:play-services-location@{strictly 17.1.0}
[ERROR] [GRADLE]   -- Project 'app' depends onto com.onesignal:OneSignal@{strictly 3.16.0}
[ERROR] [GRADLE]   -- Project 'app' depends onto ti:playservices@{strictly 17.5.0}
[ERROR] [GRADLE]   -- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 21.0.1}
[ERROR] [GRADLE]   -- Project 'app' depends onto firebase:cloudmessaging@3.1.0
[ERROR] [GRADLE]   -- Project 'app' depends onto firebase:cloudmessaging@{strictly 3.1.0}
[ERROR] [GRADLE]   -- Project 'app' depends onto com.williamrijksen:onesignal@{strictly 3.0.0}
[ERROR] [GRADLE]   -- Project 'app' depends onto com.google.firebase:firebase-messaging@{strictly 21.0.1}
[ERROR] [GRADLE]
[ERROR] [GRADLE]   For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
[ERROR] [GRADLE]   endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
[ERROR] [GRADLE]   github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = true }" to your bu
[ERROR] [GRADLE]   ild.gradle file.
[ERROR] [GRADLE]
[ERROR] [GRADLE] * Try:
[ERROR] [GRADLE] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ERROR] [GRADLE]
[ERROR] [GRADLE] * Get more help at https://help.gradle.org
[ERROR] [GRADLE]
[ERROR] [GRADLE] BUILD FAILED in 3m 34s
[ERROR] "gradlew" tool returned exit code: 1```
jordanbisato commented 3 years ago

I can build now after add this to my build.gradle

dependencies {
  implementation 'com.google.android.gms:play-services-base:[10.2.1, 16.1.99]'
}

apply plugin: 'com.google.gms.google-services'

googleServices { disableVersionCheck = true } 

But now i am receiving this error:

[ERROR] V8Exception: Exception occurred at ti:/kroll.js:1045: Uncaught Error: Requested module not found: hyperloop\hyperloop.bootstrap

m1ga commented 2 years ago

I've only had to add googleServices { disableVersionCheck = true } perhaps that will fix the hyperloop part again. Added that info + some updated dependencies in https://github.com/AbdullahFaqeir/com.williamrijksen.onesignal/pull/1