Comments (9)
when I upgrade to version 2.0.0, the project fails to compile and prompts to upgrade to the latest Gradle.
Is it possible that flutter_callkit_incoming is using syntax or features that are only supported in the latest Gradle version?
from flutter_callkit_incoming.
you can try add in android/build.gradle
buildscript {
ext.kotlin_version = '1.8.0'
...
}
change version to 1.8.0
from flutter_callkit_incoming.
after change version to 1.8.0
`
Launching lib/main.dart on HMA L29 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
-
Where:
Script '/Users/yoer/workspace/sources/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 950 -
What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Could not create task ':app:copyFlutterAssetsDebug'.
> Could not create task ':app:mergeDebugAssets'.
> Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
- Try:
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.
- Get more help at https://help.gradle.org
BUILD FAILED in 1m 58s
Exception: Gradle task assembleDebug failed with exit code 1
`
from flutter_callkit_incoming.
I think you need to upgrade Gradle version
android/build.gradle
classpath 'com.android.tools.build:gradle:7.1.2'
android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
from flutter_callkit_incoming.
A problem occurred configuring project ':sqflite'.
> Could not resolve all files for configuration ':sqflite:classpath'.
> Could not resolve com.android.tools.build:gradle:7.4.2.
Required by:
project :sqflite
> No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.4' but:
- Variant 'apiElements' capability com.android.tools.build:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.4')
- Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '7.4')
- Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.4')
- Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '7.4')
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':sqflite' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':sqflite' of type org.gradle.api.Project.
from flutter_callkit_incoming.
[✓] Flutter (Channel stable, 3.7.12, on macOS 12.2.1 21D62 darwin-arm64 (Rosetta), locale zh-Hans-CN)
• Flutter version 3.7.12 on channel stable at /Users/yoer/workspace/sources/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4d9e56e694 (6 weeks ago), 2023-04-17 21:47:46 -0400
• Engine revision 1a65d409c7
• Dart version 2.19.6
• DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at /Users/yoer/Library/Android/sdk
• Platform android-33, build-tools 33.0.2
• ANDROID_HOME = /Users/yoer/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 13F100
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
[✓] VS Code (version 1.78.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.64.0
from flutter_callkit_incoming.
This problem has been blocking my project for a while.
Can you please tell me the specific reasons that caused it?
It occurs when upgrading to version 2.0.
Additionally, my project does not use sqlite.
from flutter_callkit_incoming.
you can set Android Studio build with java8. Setting>Build Tool>Gradle> set java8 instead of 11
from flutter_callkit_incoming.
sloved,
project/android/gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
project/android/build.gradle:
buildscript {
// kotlin version should be 1.8.0
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// support notification
classpath 'com.google.gms:google-services:4.3.10'
}
}
from flutter_callkit_incoming.
Related Issues (20)
- Callkit not appear in low power mode in iPhone
- Check if ShowCallkit already called
- CUSTOMIZE CALLKIT NOTIFICATION AND CALL SCREEN UI HOT 1
- call failure
- Speaker not working HOT 1
- Privacy manifest file for iOS is missing
- Volume controls fail to work once call notification is received
- Open the incoming call sound even when the phone is on silent mode
- TelecomConnectionService - Speaker related issue
- How can we hide callkit notification if other user end call before pickup ?
- Attemtping to make a regular phone cal HOT 1
- Unable to load CallKitLogo
- iOS App over screen callkit
- Callbacks for Accept and Decline in lock state
- Android Build failure with v2.0.4 HOT 5
- Unable to Answer Calls with Locked Device HOT 2
- [Question] iOS with locked screen. Bug if I send the same uuid twice
- iOS crash ACTION_CALL_DECLINE HOT 1
- Execution failed for task ':flutter_callkit_incoming:compileDebugKotlin' HOT 1
- Voice not audible After Ending Network Call from Other end HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_callkit_incoming.