question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: missing generated raw resources

See original GitHub issue

after running react-native run-android

react-native-image-filter-kit/android/src/main/java/iyegoroff/imagefilterkit/blend/DifferenceBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_DifferenceBlend(ctx.getScript(), getContext().getResources(), R.raw.differenceblend)

MacOS Mojave, React Native 58 after running react-native run-android this occurs on command line in several filters where it cannot resolve R.raw

Need this…

package iyegoroff.imagefilterkit;

public final class R {
    private R() {
    }
    public static final class raw {
      // filled in here with render script file name-address pairs
    }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sebringjcommented, Apr 24, 2019

@cristianosantos95 No, I went another route with WebGL. The author while talented and generous to place this here, he is not very receptive to feedback on this issue and dismisses it as my own problem.

0reactions
burdiuzcommented, Jun 21, 2019

Looks like I’m having same error while building debug.

< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\ColorBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_ColorBlend(ctx.getScript(), getContext().getResources(), R.raw.colorblend);
                                                                            ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\ColorBurnBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_ColorBurnBlend(ctx.getScript(), getContext().getResources(), R.raw.colorburnblend);
                                                                                ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\ColorDodgeBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_ColorDodgeBlend(ctx.getScript(), getContext().getResources(), R.raw.colordodgeblend);
                                                                                 ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\DifferenceBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_DifferenceBlend(ctx.getScript(), getContext().getResources(), R.raw.differenceblend);
                                                                                 ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\ExclusionBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_ExclusionBlend(ctx.getScript(), getContext().getResources(), R.raw.exclusionblend);
                                                                                ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\HardLightBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_HardLightBlend(ctx.getScript(), getContext().getResources(), R.raw.hardlightblend);
                                                                                ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\HueBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_HueBlend(ctx.getScript(), getContext().getResources(), R.raw.hueblend);
                                                                          ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\LuminosityBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_LuminosityBlend(ctx.getScript(), getContext().getResources(), R.raw.luminosityblend);
                                                                                 ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\MultiplyBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_MultiplyBlend(ctx.getScript(), getContext().getResources(), R.raw.multiplyblend);
                                                                               ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\SaturationBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_SaturationBlend(ctx.getScript(), getContext().getResources(), R.raw.saturationblend);
                                                                                 ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\blend\SoftLightBlendPostProcessor.java:45: error: cannot find symbol
      new ScriptC_SoftLightBlend(ctx.getScript(), getContext().getResources(), R.raw.softlightblend);
                                                                                ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\compositing\DestinationATopCompositingPostProcessor.java:47: error: cannot find symbol
      R.raw.destinationatopcompositing
       ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\compositing\DestinationInCompositingPostProcessor.java:47: error: cannot find symbol
      R.raw.destinationincompositing
       ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\compositing\SourceInCompositingPostProcessor.java:47: error: cannot find symbol
      R.raw.sourceincompositing
       ^
  symbol:   variable raw
  location: class R
< project root >\node_modules\react-native-image-filter-kit\android\src\main\java\iyegoroff\imagefilterkit\compositing\SourceOutCompositingPostProcessor.java:47: error: cannot find symbol
      R.raw.sourceoutcompositing
       ^
  symbol:   variable raw
  location: class R
15 errors
3 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-filter-kit:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Windows 10 react-native 0.59.8 Tried couple times to reinstall with same result, don’t know where to look else. Edit: I have tons of other modules included into my app(educational purposes) so may be problem is in incompatibility.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generating Signed APK missing resource files - Stack Overflow
Generating Signed APK missing resource files ... My code looks like this: Boolean success = false; int map_version = manager.getMapVersion(this); ...
Read more >
Missing Resource: R.raw.config (in SettingsManager.java, line ...
I just cloned the git repository and tried to build the application, but get a compilation error due to missing resource R.raw.config context....
Read more >
Add app resources | Android Developers
Android Studio helps you add new resources and alternative resources in several ways, depending on the type of resource you want to add....
Read more >
Resource Raw Folder in Android Studio - GeeksforGeeks
The raw folder in Android is used to keep mp3, mp4, sfb files, etc. The raw folder is created inside the res folder:...
Read more >
aapt fails to package file (in either /assets or /res/raw) when ...
Similar errors are reported when the files are created under /res/raw. ADDITIONAL INFORMATION: Similar errors result when compiling from command line with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found