I'm writing a library based on code generation.
This library generating dagger's module via annotations. How do I run my annotation processor before dagger's code generation?
Now it crashes on build because dagger trying to build the component before modules was generated.
Error:
.ktC:\Users\syncended\AndroidStudioProjects\Daggerblade\app\build\tmp\kapt3\stubs\debug\dev\syncended\daggerblade\AppComponent.java:6: error: cannot find symbol
#dagger.Component(modules = {BookModule.class})
^
symbol: class BookModuleC:\Users\syncended\AndroidStudioProjects\Daggerblade\app\build\tmp\kapt3\stubs\debug\dev\syncended\daggerblade\AppComponent.java:7: error: [ComponentProcessor:MiscError] dagger.internal.codegen.ComponentProcessor was unable to process this interface because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
public abstract interface AppComponent {
^Attempt to reopen a file for path C:\Users\syncended\AndroidStudioProjects\Daggerblade\app\build\generated\source\kapt\debug\dev\syncended\blade\BookModule.kt
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
* Try:
Related
I tried to build the app using the GitLab pipeline and it failed with the following error.
.../node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java:13: error: cannot find symbol
ViewManagerResolver viewManagerResolver,
^
symbol: class ViewManagerResolver
location: class ReanimatedUIImplementation
.../volcano/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java:11: error: recursive constructor invocation
public ReanimatedUIImplementation(
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native reanimated:compileReleaseJavaWithJavac'.
Note: VM and local machine configuration are same.
recently i add dynamic delivery module(dynamic feature) to the app, and facing this error first:
(1) could not determine the dependencies of task ':project:compileDebugjavawithJavac'
could not resolve all task dependencies for configuration ': project:debugCompileClasspath'
could not resolve project :app
required by
Project : project
cannot choose between the following variants of project: app:
-devDebugAndroidTestCompile
-devDebugAndroidTestRuntime
-...
after searching the google, so I changed the module part implementation app part to be :
implementation project(path:':app', configuration:'default')
but then these two errors come out :
(2)
1:
task failed with an exception
*what went wrong:
execution failed for task ':project:databindingexportfeatureInfoDebug'
java.util.NoSuchElementException (no error message)
2:
task failed with an exception
*what went wrong:
execution failed for task ':project:processDebugManifest'
java.util.NoSuchElementException (no error message)
How to fix these issues? thanks
These are my dependencies in build.gradle.kts:
implementation("io.github.microutils:kotlin-logging:1.7.8")
implementation("org.slf4j:slf4j-api:1.7.29")
Then in module-info.java:
requires kotlin.logging;
All the rest works fine with the Java modular approach
However whenever I try to build, then I get:
> Task :compileJava FAILED
6 actionable tasks: 6 executed
C:\Users\elect\IdeaProjects\assimp\src\main\java\module-info.java:13: error: module not found: kotlin.logging
requires kotlin.logging;
What am I doing wrong?
Automatic module name
PS C:\Users\elect> jar --file=C:\Users\elect\.gradle\caches\modules-2\files-2.1\io.github.microutils\kotlin-logging-jvm\2.0.3\acd404001442be5d98fbaa7ff9df83041cba70fe\kotlin-logging-jvm-2.0.3.jar --describe-module
No module descriptor found. Derived automatic module.
kotlin.logging.jvm#2.0.3 automatic
requires java.base mandated
contains mu
contains mu.internal
I am getting an error when I import a package into my JS file:
import GoogleVRPanorama, { PanoramaView } from 'react-native-google-vr-panorama'
Error:
This error I get with all the VR 360 components I try to import.
Edit-1:
I did follow the installation steps but I didn't rebuild the app
MainApplication.java: MainApplication
So when I rebuild the app, getting the following error:
C:\Users\cherry\Test03\node_modules\react-native-google-vr-panorama\android\src\main\java\com\xebia\googlevrpanorama\RNGoogleVRPanoramaPackage.java:14:
error: method does not override or implement a method from a supertype
#Override
^ Note: C:\Users\cherry\Test03\node_modules\react-native-google-vr-panorama\android\src\main\java\com\xebia\googlevrpanorama\RNGoogleVRPanoramaView.java
uses unchecked or unsafe operations. Note: Recompile with
-Xlint:unchecked for details. 1 error :react-native-google-vr-panorama:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-google-vr-panorama:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Sounds like you either
1. Did not finish the install steps, i.e. adding lines to MainApplication etc., see https://github.com/XebiaStudio/react-native-google-vr-panorama/blob/master/README.md#installation for details
or
2. Did not rebuild the app with react-native run-android.
I've imported a Libgdx projecto using Gradle.
After I've followed these instructions: https://github.com/libgdx/libgdx/wiki/Gradle-and-Intellij-IDEA#running-your-project
But, it returns the next bug when trying launch the desktop version:
(*class Bootstrap is the main class of the core)
Information:Gradle: Executing tasks: [:desktop:assemble, :core:assemble]
Information:18/06/2015 10:29 - Compilation completed with 3 errors and 1 warning in 5s 37ms
Error:Gradle: Execution failed for task ':desktop:compileJava'.
Compilation failed; see the compiler error output for details.
Warning:Gradle: [options] bootstrap class path not set in conjunction with -source 1.6
D:\workspace\delee\desktop\src\com\josemwarrior\delee\desktop\DesktopLauncher.java
Error:(5, 30) Gradle: error: cannot find symbol class Bootstrap
Error:(12, 28) Gradle: error: cannot find symbol class Bootstrap
I'm using Android Studio 1.2.2
And when I execute the "Make" button, gives me the next error:
D:\workspace\delee\desktop\src\com\josemwarrior\delee\desktop\DesktopLauncher.java
Error:(5, 30) error: cannot find symbol class Bootstrap
Error:(12, 28) error: cannot find symbol class Bootstrap
1 warning
Error:Execution failed for task ':desktop:compileJava'.
Compilation failed; see the compiler error output for details.
Just select Build->Clean, and Build->Rebuild project, and all gone fine