Skip to content

Instantly share code, notes, and snippets.

@dpolishuk
Created November 17, 2015 07:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpolishuk/ecd944f9cf84c62dfd5d to your computer and use it in GitHub Desktop.
Save dpolishuk/ecd944f9cf84c62dfd5d to your computer and use it in GitHub Desktop.
Broken kapt in latest Kotlin beta [1.0.0-beta-2422, 1.0.0-beta-2417]
Note: Generating a MembersInjector or Factory for io.dp.weather.app.activity.debug.DebugActivity. Prefer to run the dagger processor over that class instead.
warning: The following options were not recognized by any processor: '[kapt.kotlin.generated]'
/Users/deepol/work/weather-android-kotlin/app/build/generated/source/kapt/release/io/dp/weather/app/adapter/PlacesAdapter_MembersInjector.java:14: error: cannot access NonExistentClass
private final MembersInjector<OrmliteCursorRecyclerViewAdapter<Place, Holder>> supertypeInjector;
^
class file for error.NonExistentClass not found
Note: /Users/deepol/work/weather-android-kotlin/app/build/generated/source/kapt/release/io/dp/weather/app/activity/DaggerActivityComponent.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:app:compileReleaseJavaWithJavac FAILED
@dalewking
Copy link

Any luck finding an answer to this? I am ending up having to switch back from Kotlin to Java due to this issue. Kapt is broken!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment