Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append srcjar to aar_import #592

Merged
merged 9 commits into from
Oct 5, 2021

Conversation

Bencodes
Copy link
Contributor

@Bencodes Bencodes commented Aug 25, 2021

Appending the srcjar when available to the aar_import.

@jin
Copy link
Member

jin commented Sep 22, 2021

It would be nice to have an integration test (like the ones in the WORKSPACE file) that depends on an AAR that will trigger this codepath - could you add a test like that?

@Bencodes
Copy link
Contributor Author

I'll take a look at adding a quick test this week.

@Bencodes
Copy link
Contributor Author

Bencodes commented Oct 2, 2021

@jin the PR has been updated with some tests.

@jin
Copy link
Member

jin commented Oct 4, 2021

Oct 04, 2021 3:02:00 AM com.google.devtools.build.android.AndroidCompiledResourceMergingAction main
--
  | SEVERE: Error during merging resources
  | com.google.devtools.build.android.AndroidResourceMerger$MergingException: Error during merging
  | at com.google.devtools.build.android.AndroidResourceMerger$MergingException.wrapException(AndroidResourceMerger.java:75)
  | at com.google.devtools.build.android.AndroidResourceMerger.mergeCompiledData(AndroidResourceMerger.java:283)
  | at com.google.devtools.build.android.AndroidCompiledResourceMergingAction.main(AndroidCompiledResourceMergingAction.java:231)
  | at com.google.devtools.build.android.ResourceProcessorBusyBox$Tool$3.call(ResourceProcessorBusyBox.java:81)
  | at com.google.devtools.build.android.ResourceProcessorBusyBox.processRequest(ResourceProcessorBusyBox.java:234)
  | at com.google.devtools.build.android.ResourceProcessorBusyBox.main(ResourceProcessorBusyBox.java:177)
  | Caused by: java.io.IOException: com.google.devtools.build.android.AndroidFrameworkAttrIdProvider$AttrLookupException: Android attribute not found: lStar
  | at com.google.devtools.build.android.AndroidResourceClassWriter.flush(AndroidResourceClassWriter.java:122)
  | at com.google.devtools.build.android.UnwrittenMergedAndroidData.writeResourceClass(UnwrittenMergedAndroidData.java:91)
  | at com.google.devtools.build.android.AndroidResourceMerger.mergeCompiledData(AndroidResourceMerger.java:275)
  | ... 4 more
  | Caused by: com.google.devtools.build.android.AndroidFrameworkAttrIdProvider$AttrLookupException: Android attribute not found: lStar
  | at com.google.devtools.build.android.AndroidFrameworkAttrIdJar.getAttrId(AndroidFrameworkAttrIdJar.java:48)
  | at com.google.devtools.build.android.PlaceholderIdFieldInitializerBuilder.getStyleableInitializers(PlaceholderIdFieldInitializerBuilder.java:329)
  | at com.google.devtools.build.android.PlaceholderIdFieldInitializerBuilder.build(PlaceholderIdFieldInitializerBuilder.java:238)
  | at com.google.devtools.build.android.AndroidResourceClassWriter.flush(AndroidResourceClassWriter.java:114)
  | ... 6 more
  |  
  | Oct 04, 2021 3:02:00 AM com.google.devtools.build.android.ResourceProcessorBusyBox processRequest

The line is Android attribute not found: lStar - is there an issue with this particular artifact?

@Bencodes
Copy link
Contributor Author

Bencodes commented Oct 5, 2021

@jin updated with a simpler artifact. One of the jobs needs to be retried but everything else looks good.

Copy link
Member

@jin jin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jin jin merged commit 817769f into bazelbuild:master Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants