Project 'cocoapods' isn't linked with Gradle - gradle

I am getting this error when I tried to open a sample project by name "cocoapods" in the Kotlin/Native samples.
Is there a way to resolve this error!

If you see that error, just ignore and continue with your regular:
./gradlew build
or follow the instructions as stated in the Readme.md.
This is not a blocker!

Related

How to View Gradle module dependencies?

The following error occurs when gradle builds
Duplicate class androidx.lifecycle.ViewModelLazy found in modules lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1) and lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1)
Duplicate class androidx.lifecycle.ViewTreeViewModelKt found in modules lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1) and lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1)
Go to the documentation to learn how to Fix dependency resolution errors.
So I found the following documentation:
link
But I can't find AppName > Tasks > android. I noticed the following tip:
So I opened the settings and unchecked the Do not build Gradle task list during Gradle sync
but this still doesn't work.
I already know the answer to this question, when you run the gradle command once, the interface will appear.
gradle app:dependencies

Front-end-node - error#: Cannot infer the root project id

I am following the tutorial Creating an ink!Project - https://substrate.dev/substrate-contracts-workshop/#/0/creating-an-ink-project, and have successfully tested the flipper contract.
When I build the contract using cargo +nightly-2020-10-06 contract build I get an error:
ERROR: Cannot infer the root project identer link description here
Even though I have researched this issue, cannot work out where I'm going wrong.
You are trying to build the Substrate node-template using cargo-contract.
Cargo Contract can only be used to build Smart contract like the example you mentioned (flipper).
For the node-template run cargo +nightly-2020-10-06 build --release
Thanks, 'when I run 'cargo +nightly-2020-10-06 build --release' it compiles successfully!

Cannot find snapshot for id: gradle

I'm getting error of cannot find snapshot for id while building the project.
on running the command ./gradlew build --info I received the information saying that PROJECT_FOLDER/build/libs/projectName.jar has been removed.
I tried to look for the same, but its generating the jar at said location.
It was running fine till yesterday all of a sudden started facing this issue.
Now, I have no clue how should I go ahead finding the root cause.
Any suggestion would be really appreciated.
I'm using gradle 4.2.1 for building the project
Could you please try to remove .gradle directory from your project and build your gradle again

Unable to generate allure report in jenkins

getting the following error.
screenshot is also attached.
basically .bat is not getting generated.
ERROR: Step ‘Allure Report’ aborted due to exception:
java.io.IOException: Failed to rename C:\Users\dell\.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure2\allure-2.4.1 to C:\Users\dell\.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure2\allure-2.4.1.__rename
Now its working.
There is problem in allure command installation.
Maven central installer is giving error
Tried by giving link in jenkins global tool configuration and its working
Link : https://bintray.com/qameta/generic/download_file?file_path=io%2Fqameta%2Fallure%2Fallure%2F2.4.1%2Fallure-2.4.1.zip
I faced the same issue when configured with the latest version of Maven under Jenkins->Global Tool Configurations->Allure Commandline. Once i downgraded the Maven version I was able to generate allure reports successfully.
I had the same problem. In my case it was enough to delete allure-jenkins plugin from the list of plugins in Jenkins.

Gradle not more detail for ':compileKotlin'

I'm new on gradle and kotlin
When i build syntax error file using gradle build
it's just show
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details
How do i get which line syntax error like using kotlinc?
PS: using vscode, so i need it
edited
Sorry, i missed up error message because difference between gradle and kotlinc
gradle:
PS C:\PlayGround2> gradle build
e: C:\PlayGround2\src\main\kotlin\Main.kt: (26, 1): Expecting a top level declaration
> Task :compileKotlin
Using kotlin incremental compilation
...
kotlinc:
PS C:\PlayGround2\src\main\kotlin> kotlinc .\Main.kt
Main.kt:26:1: error: expecting a top level declaration
} <--- this line not shown in kotlinc
that's a known issue, someone has solved it by uninstalling all java versions and only install JDK 8.
edit: also check this link : https://github.com/waicool20/KAGA/issues/27
Have a nice day.

Resources