lambus-platform / titanium-notification-banner

A lightweight ES6 based notification banner - coming with different types and positions.
MIT License
26 stars 7 forks source link

Compile error android #6

Closed caspahouzer closed 4 years ago

caspahouzer commented 4 years ago

I can't get it compiled successful

[INFO] :   [GRADLE] 
[INFO] :   [GRADLE] > Configure project :module
[INFO] :   [GRADLE] The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.5.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
[INFO] :   [GRADLE]     at build_9uwp71261tstmo3cdf5gii1gr$_run_closure2.doCall(/Users/sebastianklaus/Downloads/titanium-notification-banner-master/android/build.gradle:11)
[INFO] :   [GRADLE]     (Run with --stacktrace to get the full stack trace of this deprecation warning.)
[INFO] :   [GRADLE] WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
[INFO] :   [GRADLE] It will be removed in version 5.0 of the Android Gradle plugin.
[INFO] :   [GRADLE] For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
[ERROR] :  [GRADLE] 
[ERROR] :  [GRADLE] FAILURE: Build failed with an exception.
[ERROR] :  [GRADLE] 
[ERROR] :  [GRADLE] * What went wrong:
[ERROR] :  [GRADLE] A problem occurred configuring project ':module'.
[ERROR] :  [GRADLE] > Failed to notify project evaluation listener.
[ERROR] :  [GRADLE]    > The 'java' plugin has been applied, but it is not compatible with the Android plugins.
[ERROR] :  [GRADLE]    > Could not get unknown property 'externalNativeBuildDebug' for project ':module' of type org.gradle.api.Project.
[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 910ms
[ERROR] :  "gradlew" tool returned exit code: 1
[ERROR] :  An error occurred during build after 2s 453ms
[ERROR] :  "gradlew" tool returned exit code: 1

Any hints what do I have to do?

m1ga commented 4 years ago

use this gradle:


repositories {
    google()
    jcenter()
    mavenCentral()
}

dependencies {
    implementation 'com.tapadoo.android:alerter:3.0.2'
    compile "org.jetbrains.kotlin:kotlin-stdlib:1.3.41"
    compile 'com.android.support:design:25.0.1'
}
ottopic commented 2 years ago

@m1ga how have I to configure repositories and dependencies in alloy project?

m1ga commented 2 years ago

why do you ask in a closed topic 😄 ?

It's the same way as in a normal project. Use the version in this PR https://github.com/lambus-platform/titanium-notification-banner/pull/13 and check the section in the readme: https://github.com/lambus-platform/titanium-notification-banner/blob/281a3c4b9ebfd2d1d979132faa462bb2f349558f/README.md#android