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: patch-diff.githubusercontent.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:4dc631f0-7819-0866-1ce7-2463eb7f1b0c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC130:1A2E5F:214BD2:2AFCE5:69872FF2
html-safe-nonce6e755ba55631bbf4edce6a06bee3e91da78af783deb461013de0f6b23592c113
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTMwOjFBMkU1RjoyMTRCRDI6MkFGQ0U1OjY5ODcyRkYyIiwidmlzaXRvcl9pZCI6IjI4NTUwMDExMjAwNDMzODA3MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3afe56b8b44cecdff21d328ecfd769512fc11870d96ca61db8a556ffd703a441
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
None38ec31e8cc99e2ff9dfdb8f1c79b44d05e5fce45b7e96adc4250ef0059f0eb28
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
release0b29275dfad309dc1c4bd0714af188af8e5c4b53
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/deepmedia/Grease/issues/30#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepmedia%2FGrease%2Fissues%2F30
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/deepmedia/Grease/issues/30
Reloadhttps://patch-diff.githubusercontent.com/deepmedia/Grease/issues/30
Reloadhttps://patch-diff.githubusercontent.com/deepmedia/Grease/issues/30
deepmedia https://patch-diff.githubusercontent.com/deepmedia
Greasehttps://patch-diff.githubusercontent.com/deepmedia/Grease
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdeepmedia%2FGrease
Fork 11 https://patch-diff.githubusercontent.com/login?return_to=%2Fdeepmedia%2FGrease
Star 104 https://patch-diff.githubusercontent.com/login?return_to=%2Fdeepmedia%2FGrease
Code https://patch-diff.githubusercontent.com/deepmedia/Grease
Issues 11 https://patch-diff.githubusercontent.com/deepmedia/Grease/issues
Pull requests 1 https://patch-diff.githubusercontent.com/deepmedia/Grease/pulls
Actions https://patch-diff.githubusercontent.com/deepmedia/Grease/actions
Security 0 https://patch-diff.githubusercontent.com/deepmedia/Grease/security
Insights https://patch-diff.githubusercontent.com/deepmedia/Grease/pulse
Code https://patch-diff.githubusercontent.com/deepmedia/Grease
Issues https://patch-diff.githubusercontent.com/deepmedia/Grease/issues
Pull requests https://patch-diff.githubusercontent.com/deepmedia/Grease/pulls
Actions https://patch-diff.githubusercontent.com/deepmedia/Grease/actions
Security https://patch-diff.githubusercontent.com/deepmedia/Grease/security
Insights https://patch-diff.githubusercontent.com/deepmedia/Grease/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/deepmedia/Grease/issues/30
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/deepmedia/Grease/issues/30
Conflicting with JAR files?https://patch-diff.githubusercontent.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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA0Njc2MTQsIm5iZiI6MTc3MDQ2NzMxNCwicGF0aCI6Ii8zODAwODkwMC80NDc5Mzc1NzctNjA5MDIxNmEtYzhiYy00YjM0LTllYzUtNTQ5OTk4MTQ4ODlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjA3VDEyMjgzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmNTYyNzU2OWRkNmI1MzNiNDI1NTNmMGI0MmZkNGRkZGM3ZjYxYjU0ZWYyMjAxZmRjMzA4YWU0ZGE2YmJlOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OOe_k8zKoCqfdwHJs5vSycGSqIAXbm5bn4QDOenYG8I
https://private-user-images.githubusercontent.com/38008900/447936590-0c234bf8-8bbe-4f90-8487-b437f3311dfe.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA0Njc2MTQsIm5iZiI6MTc3MDQ2NzMxNCwicGF0aCI6Ii8zODAwODkwMC80NDc5MzY1OTAtMGMyMzRiZjgtOGJiZS00ZjkwLTg0ODctYjQzN2YzMzExZGZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjA3VDEyMjgzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1NTkzMDM0MmZhM2UzNTI5ZGQ3MTcyMzcwZDU1Y2JiNTI4ZWNiMzdhNTIxZWRiYWNiOWI5YTE2MjUyODU5NmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Xh9Kk-NEsw1b3k12UYpgRCSaStIE_TAPEp1NtgzJq_w
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.