Android gradle not build if running the projects apps - android-ide

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.

Related

Kotlin Multiplatform Mobile unable to run on iOS: Execution failed for task ':shared:compileKotlinIosX64'

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.

error: occurred while running subprocess Cordova while adding platform iOS

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?

Error while running sonar-scanner on mac machine

I have installed the latest version of sonarqube 7.0 on my mac machine and trying to configure my iOS Swift project.
I am getting the following error while running the command sonar-scanner
ERROR: Error during SonarQube Scanner execution
ERROR: org/sonar/api/measures/PersistenceMode
ERROR: Caused by: org.sonar.api.measures.PersistenceMode
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR - Command 'sonar-scanner ' failed with error code: 1
Note: Using the latest plugin backelite-sonar-swift-plugin-0.3.5.jar
The above issues has a quick fix in the below link,
https://github.com/Hugal31/sonar-swift/tree/fix/persistence-mode
Download the plugin and replace with the old version. It might help you.

cant run grails app on Intellij idea 13

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?

Unable to launch web project through dart editor

Just starting up on Dart and I am unable to launch web project from dart editor, command line projects work fine.
I get this exception while trying to start web project
Running pub get on C:\Users\Admin\dart\DartABWebApp ... ---
Pub get failed, [69] Resolving dependencies...
Got socket error trying to find package browser at https://pub.dartlang.org.
Anyone knows how to resolve this ?
I moved the installation directly under primary drive and that did the trick

Resources