-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot build the source file #112
Comments
Are you on ArcticFox? Also, downgrade Gradle plugin to 1.5.10 |
Hey sure let me look into it but current build was on Latest Canary Bumblebee. |
I'm also failing to build the the buildSrc module on master using JDK 11 and latest Bumblebee: Android Studio Bumblebee | 2021.1.1 Canary 11 |
If you try to open it in Android Studio stable it gives you hundreds of errors. you need to open it in latest Android Studio Canary |
I am getting errors while building as well e: /Users/asingh/AndroidStudioProjects/ComposeCookBook/buildSrc/src/main/kotlin/common-compose-module-configs-script-plugin.gradle.kts: (8, 1): Expression 'android' cannot be invoked as a function. The function 'invoke()' is not found FAILURE: Build failed with an exception.
|
Thanks let me try to add fix for stable AS version. Project should be working on Latest canary version. Please fetch latest changes. |
Same error on latest Chipmunk Canary Android Studio Chipmunk | 2021.2.1 Canary 5 |
AS-version:Android Studio Bumblebee 2021.1.1 Beta4 change sourceCompatibility and targetCompatibility to JavaVersion.VERSION_11 and change jvmTarget to "11" has fix this issue
|
When updating to Android Studio Chimpmunk, after removing all build directories, the `android` section of `shared-android.gradle.kts` was unrecoginized. I found and applied this fix: Gurupreet/ComposeCookBook#112 (comment) In the process of testing this, I discovered that AS was launching both Intel and M1 java processes. Turned out that the 1.8 java processes were Intel, so I switched all `kotlin.jvmTargets` to 11 to avoid this.
When I download, open this project and run, I got this error.
AGP : 7.0.0
Gradle : 7.0
gradle plugin : 1.5.21
I think this is a problem of dsl, but don't know what to do.
e: /Users/user/Desktop/ComposeCookBook-master/buildSrc/src/main/kotlin/common-compose-module-configs-script-plugin.gradle.kts: (8, 1): Expression 'android' cannot be invoked as a function. The function 'invoke()' is not found e: /Users/user/Desktop/ComposeCookBook-master/buildSrc/src/main/kotlin/common-compose-module-configs-script-plugin.gradle.kts: (8, 1): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: internal val ComPluginGroup.android: ComAndroidPluginGroup defined in gradle.kotlin.dsl.plugins._a477e4bb38b5f342e70f4eed110d6eb4 in file PluginSpecBuilders.kt internal val OrgJetbrainsKotlinPlatformPluginGroup.android: PluginDependencySpec defined in gradle.kotlin.dsl.plugins._a477e4bb38b5f342e70f4eed110d6eb4 in file PluginSpecBuilders.kt internal val OrgJetbrainsKotlinPluginGroup.android: PluginDependencySpec defined in gradle.kotlin.dsl.plugins._a477e4bb38b5f342e70f4eed110d6eb4 in file PluginSpecBuilders.kt internal val PluginDependenciesSpec.android: PluginDependencySpec defined in gradle.kotlin.dsl.plugins._a477e4bb38b5f342e70f4eed110d6eb4 in file PluginSpecBuilders.kt
The text was updated successfully, but these errors were encountered: