Realm-java: Could not get unknown property 'packageForR' for task '::processDebugResources' of type

Created on 30 Jan 2018  路  4Comments  路  Source: realm/realm-java

Bugs: I want to update Realm database from version 4.2.0 to 4.3.3, but after gradle sync, it will fail

Goal

Update Realm from 4.2.0 to 4.3.3

Expected Results

Gradle sync will success

Actual Results

Gradle sync failed with stacktrace:

Error:Execution failed for task ':QuizApp:processDebugResources'.
> Could not get unknown property 'packageForR' for task ':QuizApp:processDebugResources' of type com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.
T-Help

Most helpful comment

Yeah. i find it. its relate to butterknife plugin.

All 4 comments

This doesn't look like it is related to Realm. Try cleaning your gradle cache and stop the gradle daemon. Then retry the build.

Yeah. i find it. its relate to butterknife plugin.

@iman2420 I'm facing the same problem, what was the solution?

@fymo removing ButterKnife gradle plugin, and using the annotationProcessor + implementation version of adding it to project instead.

Was this page helpful?
0 / 5 - 0 ratings