Closed Ericky14 closed 6 years ago
@Ericky14 Thanks for the details. I tried to copy a few settings from your project that I suspected to be the issue compileSdkVersion
, targetSdkVersion
, debugCompile "com.android.support:design:$supportVer"
, etc but didn't have any luck.
Are you able to create this issue with a new NativeScript project? If so can you share the project here so we can run gradle on it to reproduce the issue quickly?
@Ericky14 I tried out NativeScript with this Gradle plugin and the roblav96/nativescript-onesignal SDK and could not reproduce the build error. However I believe the NativeScript HelloWorld project I created is using a newer gradle configuration then yours. More details below.
tns info
on my project I tested with.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 4.1.0 version and is up to date.
⚠ Update available for component tns-core-modules. Your current version is 4.0.1 and the latest available version is 4.1.0.
✔ Component tns-android has 4.1.1 version and is up to date.
I am also adding this to my PR on that repo with more details. https://github.com/roblav96/nativescript-onesignal/pull/36
@Ericky14 If possible could you still share an example project? Would still like to see what the root cause of the issue was so this plugin can do better handling on different versions of Gradle, project structures, ect.
@jkasten2 Here is the output of that command.
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 4.1.0-2018-04-18-11407 and the latest available version is 4.1.0.
⚠ Update available for component tns-core-modules. Your current version is 4.0.1 and the latest available version is 4.1.0.
⚠ Update available for component tns-android. Your current version is 4.0.1 and the latest available version is 4.1.2.
⚠ Update available for component tns-ios. Your current version is 4.0.1 and the latest available version is 4.1.0.
Also, this problem is fixed in the PR I submitted https://github.com/roblav96/nativescript-onesignal/pull/37.
I was not able to reproduce this issue with native script 4.1 so I believe 4.0.1 was using an older version of Gradle and/or the Android Gradle Plugin. This plugin must be defined first if using an version of the older than Android Gradle Plugin 3.0 which most likely was the issue.
Please Add The Following
Project Setup
build.gradle
app/build.gradle
Full Error
Dependency Tree
Run
./gradlew app:dependencies