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.

When running recordPaparazzi I see the following error.

I can only find a reference to IStart in CamColor.java in androidx.core.

java.lang.NoSuchFieldError: lStar
	at org.sharethemeal.android.view.R$styleable.<clinit>(Unknown Source)
	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1042)
	at java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
	at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:186)
	at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1105)
	at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1086)
	at java.base/java.lang.reflect.Field.get(Field.java:418)
	at app.cash.paparazzi.internal.PaparazziCallback.initResources(PaparazziCallback.kt:73)
	at app.cash.paparazzi.Paparazzi.prepare(Paparazzi.kt:128)
	at app.cash.paparazzi.Paparazzi$apply$statement$1.evaluate(Paparazzi.kt:106)
	at app.cash.paparazzi.agent.AgentTestRule$apply$1.evaluate(AgentTestRule.kt:17)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
andersucommented, Sep 9, 2022

Haven’t had this issue for a while, but after updating this dependency to 1.9.0 today implementation androidx.core:core-ktx:1.9.0 I also got

java.lang.NullPointerException
	at androidx.core.os.BuildCompat.isAtLeastPreReleaseCodename(BuildCompat.java:60)
	...

and this fixed it:

    testImplementation("androidx.core:core") {
        version { strictly("1.8.0") }
        because("Issue with cashapp/paparazzi, see: https://github.com/cashapp/paparazzi/issues/351")
    }
1reaction
mochadwicommented, Jan 31, 2022

Our current workaround:

  1. we are using https://github.com/jmfayard/refreshVersions/,
  2. we use the androidx.core=1.7.0 in versions.properties (used by refereshVersions
  3. in our ui library, i.e: :ui-component/build.gradle we use following:
   testImplementation(AndroidX.core) {
        version { strictly("1.5.0") }
        because("Issue with cashapp/paparazzi, see: https://github.com/cashapp/paparazzi/issues/351")
    }

works in our ends 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoSuchFieldError (Java Platform SE 7 ) - Oracle Help Center
Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field....
Read more >
How to Resolve the NoSuchFieldError in Java - Rollbar
The NoSuchFieldError is an error in Java that occurs when a specified field does not exist. It is thrown when an application attempts...
Read more >
NoSuchFieldError in Java - Baeldung
As the name suggests, NoSuchFieldError occurs when a specified field doesn't exist. NoSuchFieldError extends the ...
Read more >
debugging - NoSuchFieldError Java - Stack Overflow
Think about the error: NoSuchField , it means when linking the target class, the field is not there. But when compiling, the class...
Read more >
NoSuchFieldError - Android Developers
Constructs a NoSuchFieldError with no detail message. NoSuchFieldError(String s). Constructs a NoSuchFieldError with the specified detail message.
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