René's URL Explorer Experiment


Title: Conflicting with JAR files? · Issue #30 · deepmedia/Grease · GitHub

Open Graph Title: Conflicting with JAR files? · Issue #30 · deepmedia/Grease

X Title: Conflicting with JAR files? · Issue #30 · deepmedia/Grease

Description: I am trying to consume a local AAR that our SDK depends on, our SDK will be an AAR as well when release. We have some dependencies on JAR files as well however it seems this plugin is having issue with JAR files and does not respect the ...

Open Graph Description: I am trying to consume a local AAR that our SDK depends on, our SDK will be an AAR as well when release. We have some dependencies on JAR files as well however it seems this plugin is having issue ...

X Description: I am trying to consume a local AAR that our SDK depends on, our SDK will be an AAR as well when release. We have some dependencies on JAR files as well however it seems this plugin is having issue ...

Opengraph URL: https://github.com/deepmedia/Grease/issues/30

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Conflicting with JAR files?","articleBody":"I am trying to consume a local AAR that our SDK depends on, our SDK will be an AAR as well when release. We have some dependencies on JAR files as well however it seems this plugin is having issue with JAR files and does not respect the original AAR structure the AGP generates (without this plugin). I noticed that just by adding this plugin (not actually using it or using `grease` in any of the dependencies) the generated AAR is broken or has different structure and we keep getting NPE. Note that the local AAR and JAR contains native library (.so).\n\n\n1. Consuming JAR using `api(files(\"libs/SDK1.jar\"))` and consuming local AAR using `greaseTree(\"SDK2.jar\")`.\n\n```\ndependencies {\n    api(files(\"libs/SDK1.jar\"))\n    greaseTree(\"org.slf4j:slf4j-android:1.7.32\")\n    greaseTree(files(\"libs/SDK2.aar\"))\n}\n```\n\nStructure of AAR\n\n- libs\n   - SDK1.jar\n   - OtherSDK.jar\n - classes.jar\n    - com\n       - sdk2_package\n       - this_sdk_package\n    - org\n       - slf4j\n\n\n\n2. Consuming JAR local AAR using `greaseTree(\"SDK2.jar/aar\")`.\n\n```\ndependencies {\n    greaseTree(files(\"libs/SDK1.jar\"))\n    greaseTree(\"org.slf4j:slf4j-android:1.7.32\")\n    greaseTree(files(\"libs/SDK2.aar\"))\n}\n```\n\nStructure of AAR\n\n - classes.jar\n    - com\n       - sdk1_package\n          - a- (compressed)\n          - b- (compressed)\n       - sdk2_package\n       - this_sdk_package\n    - org\n       - slf4j\n\n\u003cimg width=\"1132\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6090216a-c8bc-4b34-9ec5-54999814889a\" /\u003e\n\nAs we can see the libs folder is now gone and ** sdk1_package** is now included in `classes.jar`\n\nBoth of the generated AAR is not working. We compare it to the generated AAR that is working but the local AAR classes.jar was manually extracted.\n\n\n3. Manually extracted classes.jar from local AAR (working).\n\n```\ndependencies {\n    api(files(\"libs/SDK1.jar\"))\n    implementation(\"org.slf4j:slf4j-android:1.7.32\")\n    api(files(\"libs/SDK2_AAR_manually_extracted_classes.jar\"))\n}\n```\n\n- libs\n   - SDK1.jar\n   - SDK2_manually_extracted_classes.jar\n - classes.jar\n    - com\n       - sdk1_package\n          - a- (uncompressed)\n          - b- (uncompressed)\n       - sdk2_package\n       - this_sdk_package\n\n\u003cimg width=\"1106\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0c234bf8-8bbe-4f90-8487-b437f3311dfe\" /\u003e\n\nAlso noticed that SDK1 is now uncompressed and has different file name.\n\nDoes this plugin works for cases where both AAR and JAR is simultaneously consumed? I think my major problem here is the plugin does not retain the original behavior of AGP building AAR. I wanted to retain how AGP manage local JAR files while the plugin only handles local AAR.\n\n\nAlso got this warning during building of AAR however the `.so` files was still included in the final AAR.\n`/Users/user/Library/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip: error: '/Users/user/Desktop/Projects/Mobile/Native/Android/Android-App/sdk_module/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/armeabi-v7a/libSdk.so': The file was not recognized as a valid object file\n`","author":{"url":"https://github.com/ArcherEmiya05","@type":"Person","name":"ArcherEmiya05"},"datePublished":"2025-05-27T00:12:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30/Grease/issues/30"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:09d3f6ea-c6b8-e618-7fce-52cd17314105
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB76A:244841:10A84A2:1725F45:6967D675
html-safe-nonce7e60a9d2e08e6479f3f492df9cec9212bcd01065104c33693f66fed71d90ce12
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzZBOjI0NDg0MToxMEE4NEEyOjE3MjVGNDU6Njk2N0Q2NzUiLCJ2aXNpdG9yX2lkIjoiMzk2NTgzMzU3NTk3MDc5MTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5fcd12f2263b326acec0291f2c5d4f5ef37ff8716cddc9a4310e85b421b0317b
hovercard-subject-tagissue:3092236622
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/deepmedia/Grease/30/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2ef03eb565376b34f90201cfbfdcd9ab03051ac3e12cb0c45f738f810284fb0d/deepmedia/Grease/issues/30
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ef03eb565376b34f90201cfbfdcd9ab03051ac3e12cb0c45f738f810284fb0d/deepmedia/Grease/issues/30
og:image:altI am trying to consume a local AAR that our SDK depends on, our SDK will be an AAR as well when release. We have some dependencies on JAR files as well however it seems this plugin is having issue ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameArcherEmiya05
hostnamegithub.com
expected-hostnamegithub.com
None14e0d722f75b0b025fe0e288daf623a1aaf571977ca14ad1529d490d6c64619b
turbo-cache-controlno-preview
go-importgithub.com/deepmedia/Grease git https://github.com/deepmedia/Grease.git
octolytics-dimension-user_id66073326
octolytics-dimension-user_logindeepmedia
octolytics-dimension-repository_id285627279
octolytics-dimension-repository_nwodeepmedia/Grease
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id285627279
octolytics-dimension-repository_network_root_nwodeepmedia/Grease
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4170fbd32815203bb4883f3e5f85ebea81eb5d6c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/deepmedia/Grease/issues/30#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepmedia%2FGrease%2Fissues%2F30
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepmedia%2FGrease%2Fissues%2F30
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=deepmedia%2FGrease
Reloadhttps://github.com/deepmedia/Grease/issues/30
Reloadhttps://github.com/deepmedia/Grease/issues/30
Reloadhttps://github.com/deepmedia/Grease/issues/30
deepmedia https://github.com/deepmedia
Greasehttps://github.com/deepmedia/Grease
Notifications https://github.com/login?return_to=%2Fdeepmedia%2FGrease
Fork 9 https://github.com/login?return_to=%2Fdeepmedia%2FGrease
Star 105 https://github.com/login?return_to=%2Fdeepmedia%2FGrease
Code https://github.com/deepmedia/Grease
Issues 11 https://github.com/deepmedia/Grease/issues
Pull requests 1 https://github.com/deepmedia/Grease/pulls
Actions https://github.com/deepmedia/Grease/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/deepmedia/Grease/security
Please reload this pagehttps://github.com/deepmedia/Grease/issues/30
Insights https://github.com/deepmedia/Grease/pulse
Code https://github.com/deepmedia/Grease
Issues https://github.com/deepmedia/Grease/issues
Pull requests https://github.com/deepmedia/Grease/pulls
Actions https://github.com/deepmedia/Grease/actions
Security https://github.com/deepmedia/Grease/security
Insights https://github.com/deepmedia/Grease/pulse
New issuehttps://github.com/login?return_to=https://github.com/deepmedia/Grease/issues/30
New issuehttps://github.com/login?return_to=https://github.com/deepmedia/Grease/issues/30
Conflicting with JAR files?https://github.com/deepmedia/Grease/issues/30#top
https://github.com/ArcherEmiya05
https://github.com/ArcherEmiya05
ArcherEmiya05https://github.com/ArcherEmiya05
on May 27, 2025https://github.com/deepmedia/Grease/issues/30#issue-3092236622
https://private-user-images.githubusercontent.com/38008900/447937577-6090216a-c8bc-4b34-9ec5-54999814889a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg0MTMwODksIm5iZiI6MTc2ODQxMjc4OSwicGF0aCI6Ii8zODAwODkwMC80NDc5Mzc1NzctNjA5MDIxNmEtYzhiYy00YjM0LTllYzUtNTQ5OTk4MTQ4ODlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE0VDE3NDYyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0NDA3N2Q4Yjg2NDUyYjM0MmU4NTViZWJlYzA4YTRlODVlN2FhNzgyOWI5MTYyYTk5NGRlZWUxODg4MThmMmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Uc3x_ULLtEEPirxDlhAlzNeE_hVMW0F29HlBp41X-To
https://private-user-images.githubusercontent.com/38008900/447936590-0c234bf8-8bbe-4f90-8487-b437f3311dfe.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg0MTMwODksIm5iZiI6MTc2ODQxMjc4OSwicGF0aCI6Ii8zODAwODkwMC80NDc5MzY1OTAtMGMyMzRiZjgtOGJiZS00ZjkwLTg0ODctYjQzN2YzMzExZGZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE0VDE3NDYyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlZjQ2NWIzZWM2ZGE5ZmRhOTMzNjYyZjQxYmY3ZDAyYTY4MDEzYTk5MGQ4NjliYTYxYjViOGExNjA0NDlmNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RIE3mD16x-r1aL2QEeleW7J9u3NQqGoEwZgEPA73Bow
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.