I'm using grails-2.4.0 and intellij idea 13.
I have created my first grails app and trying to run but it errors out with:
Error packaging application: Error occurred processing message bundles: Error starting Sun's native2ascii: (Use --stacktrace to see the full trace)`
Can anyone please help me?
Related
caused by: org.gradle.workers.internal.defaultworkerexecutor$workexecutionexception: a failure occurred while executing com.android.build.gradle.internal.res.parselibraryresourcestask$parseresourcesrunnable
This is error show in the logcat windows.
please help me
I am trying to resolve this error but not solve it is expert level error also i trying to suppport design libarary import in gradle app file.
I have created fresh project(Hello World) in KMM followed by their official website. In android it works smooth but when I am trying to run in XCode it's giving errors because of which I am unable to build / run the xcode project. I have attached screenshots and logs for my errors. Somehow xcode scheme is not getting generated in the KMM platform that's what I am guessing.
Can anyone please help me understand what am I missing?
Any help would be appriciated.
Following is my dev env:
Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```
XCode Logs:
> Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.
> Task :shared:compileKotlinIosX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
> Compilation finished with errors
* 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 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]
I reached out to community for this and finally found the solution. Here is the link to that issue which I raised and solved this problem.
If anyone else is going through this same issue it mostly cause of corrupted kotlin file.
Also try checking your cmd line tools in XCode as per comments.
Hope this helps someone. Cheers.
If the project doesn't run right away even on opening it from Xcode and shows the shared framework is missing, Then try generating the shared framework for iOS platform using terminal. Navigate to the project folder and execute
Command: ./gradlew packForXcode Now the shared framework should have a xcode-frameworks product and you should be able to build and run the project through Xcode.
This could happen if there are two libraries, where one library was compiled against the different version of the other library than the one currently used in the project. Please check that the project configuration is correct and has consistent versions of dependencies.
When I try to run
ionic platform add ios --verbose
it fails with the following error:
An error occurred while running subprocess Cordova.
I got an extra info on an error by running cmd with --verbose flag and I think this could be the reason for the error.
No scripts found for hook "after_platform_add".
also when it is installing plugins while adding platform
No scripts found for hook "after_plugin_install".
No scripts found for hook "before_plugin_install".
this is the log I am getting.
can anyone help with this?
Please, help. I have been trying to google this issue, but no luck.
I have created a very simple app by calling this command in unix terminal:
grails create-app sample
then:
cd sample
and then when I type in:
grails run-app
it fails after a while giving me this error:
Download https://repo.grails.org/grails/core/org/objenesis/objenesis/2.1/objenesis-2.1.jar
| Error Command [run-app] error: Profile [org.grails.profiles:base:3.1.3] declares and invalid dependency on parent profile [org.grails.profiles:base:3.1.3] (Use --stacktrace to see the full trace)
I never get to message where it suppose to say :
Server running. Browse to http://localhost:8080/sample
Any suggestions? Thanks in advance.
Change the version of org.grails.profiles:web from 3.1.3 to 3.1.2
It worked for me.
Can you run with --stacktrace (post here the result)
Verify too :
Version Java (jdk), Grails and if objenesis-2.1.jar is compatilhe with the versions.
This is a known issue in Grails 3.1.3
Version 3.1.4 just has been released fixing this along with some other bugs
According to Github, 3.1.4 fixes this problem.
I have tried to install the vaadin plugin for grails on both GGTS and Netbeans and even though it works, the IDE flags the vaadin imports as unable to resolve them and as a result code completion does not work for Vaadin components
It appears the plugin did not resolve its dependencies.
Also I notice the first time I run-app, while Vaadin plugin is installing, I get the following error:
|Installed plugin vaadin-7.1.9.1
......Error
|
Error loading event script from file [target\work\plugins\vaadin-7.1.9.1\scripts\_Events.groovy] startup failed:
C:\ .....\target\work\plugins\vaadin-7.1.9.1\scripts\_Events.groovy: 1: unable to resolve class com.vaadin.grails.VaadinConfiguration
# line 1, column 1.
import com.vaadin.grails.VaadinConfiguration
^
1 error
(Use --stacktrace to see the full trace)
Everything works after that but code completion and the unresolved error messages show up.
This happens even if I do a clean.
The version of grails used is 2.3.5 and netbeans is 7.4, GGTS is 3.4.0.RELEASE
Oh! me....
This did it for me:
Right click on project -> Grails Tools -> Resolve dependencies