java.lang.NoSuchFieldError: No static field AppCompatTheme

Upgraded to the beta this morning, this seems to be a new issue.

An exception of type: java.lang.NoSuchFieldError occurred
Message: {java.lang.NoSuchFieldError: No static field AppCompatTheme of type [I in class Landroid/support/v7/appcompat/R$styleable; or its superclasses (declaration of 'android.support.v7.appcompat.R$styleable' appears in /data/app/com.[XXXX.xxxx]-1/base.apk)}
at   AppCompatDelegateImplV7.createSubDecor()
  AppCompatDelegateImplV7.ensureSubDecor()
  AppCompatDelegateImplV7.setContentView()
  AppCompatActivity.setContentView()
  SplashActivity.onCreate()
  Activity.performCreate()
  Instrumentation.callActivityOnCreate()
  ActivityThread.performLaunchActivity()
  ActivityThread.handleLaunchActivity()
  ActivityThread.access$800()
  ActivityThread$H.handleMessage()
  Handler.dispatchMessage()
  Looper.loop()
  ActivityThread.main()
  Method.invoke()
  Method.invoke()
  ZygoteInit$MethodAndArgsCaller.run()
  ZygoteInit.main()

I know I have a bug farther in than that, but this happens in the SplashActivity which was working before the beta update.

method SplashActivity.onCreate(savedInstanceState: Bundle);
begin
  inherited onCreate(savedInstanceState);
  setContentView(R.layout.activity_splash);

where the first line of the onCreate runs fine, and the second (setContentView) generates the error.

Has something changed? I don’t believe I changed anything in the layouts, styles, etc. I’m working on other code.

I’m uploading the test project (test3.zip) with the latest code to the Dropbox folder. I’ll email ck when it is up.

Can you send us a complete test case? Thanx!

ck got back to me about this on Tuesday (7/19). I’m not sure on the particulars, something about “tweaks in the R.java logic”, but he should know about it.

1 Like