Skip to content

[7.9.0] error: constructor DynamicFontModule in class DynamicFontModule cannot be applied to given types; new DynamicFontModule() #2764

Closed
@efstathiosntonas

Description

@efstathiosntonas

Description

After updating to 7.9.0 Android build throws this error:

> Task :app:compileDebugJavaWithJavac FAILED
xxxxx/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:222: error: constructor DynamicFontModule in class DynamicFontModule cannot be applied to given types;
      new DynamicFontModule(),
      ^
  required: ReactApplicationContext
  found:    no arguments
  reason: actual and formal argument lists differ in length
Note: xxxxx/android/app/src/main/java/com/hiki/MainApplication.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

offending PR: #2736

Screenshot 2023-10-12 at 11 08 20

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

Environment

  • React Native version: 0.72.5 Paper
  • React Native UI Lib version: 7.9.0

Affected platforms

  • Android
  • iOS
  • Web

Metadata

Metadata

Assignees

Labels

buga bug in one of the components

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions