René's URL Explorer Experiment


Title: Android error: missing method body, or declare abstract · Issue #575 · nativelibs4java/nativelibs4java · GitHub

Open Graph Title: Android error: missing method body, or declare abstract · Issue #575 · nativelibs4java/nativelibs4java

X Title: Android error: missing method body, or declare abstract · Issue #575 · nativelibs4java/nativelibs4java

Description: I'm trying to run the Android example found in BridJ/Examples/AndroidExample. I am able to get dependencies resolved after downloading BridJ and using maven to build it successfully. I place the generated bridj-0.7.1-SNAPSHOT-andorid.jar...

Open Graph Description: I'm trying to run the Android example found in BridJ/Examples/AndroidExample. I am able to get dependencies resolved after downloading BridJ and using maven to build it successfully. I place the ge...

X Description: I'm trying to run the Android example found in BridJ/Examples/AndroidExample. I am able to get dependencies resolved after downloading BridJ and using maven to build it successfully. I place th...

Opengraph URL: https://github.com/nativelibs4java/nativelibs4java/issues/575

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android error: missing method body, or declare abstract","articleBody":"I'm trying to run the Android example found in BridJ/Examples/AndroidExample. I am able to get dependencies resolved after downloading BridJ and using maven to build it successfully. I place the generated bridj-0.7.1-SNAPSHOT-andorid.jar in app/libs, and I place everything under BridJ/src/main/android-libs in app/src/main/jniLibs. I copy the files in BridJ/Examples/AndroidExample/ to my Android project. All of the BridJ dependencies are resolved.\r\n\r\nThe problem is that MainActivity won't compile. The error on \r\n\r\n`public static void helloLog(Pointer\u003cByte\u003e logThis);`\r\n\r\nsays \"Missing method body, or declare abstract\". If I declare the method to be native, then I get the following runtime error.\r\n\r\n`java.lang.UnsatisfiedLinkError: No implementation found for void yada.yada.yada.MainActivity.helloLog(org.bridj.Pointer) (tried Java_yada_yada_yada_MainActivity_helloLog and Java_yada_yada_yada_MainActivity_helloLog__Lorg_bridj_Pointer_2)`\r\n\r\n I haven't added or removed anything from MainActivity.java, but for what it's worth, I'm pasting the source for that below. Any ideas?\r\n\r\n\tpackage yada.yada.yada;\r\n\r\n\timport android.app.Activity;\r\n\timport android.os.Bundle;\r\n\timport android.util.Log;\r\n\r\n\timport java.io.IOException;\r\n\r\n\timport org.bridj.BridJ;\r\n\timport org.bridj.NativeLibrary;\r\n\timport org.bridj.Pointer;\r\n\timport org.bridj.ann.Library;\r\n\timport org.bridj.demangling.Demangler.Symbol;\r\n\r\n\timport static org.bridj.Pointer.pointerToCString;\r\n\r\n\tpublic class MainActivity extends Activity {\r\n\r\n\t\tstatic final String TAG = MainActivity.class.getName();\r\n\r\n\t\t@Library(\"example\")\r\n\t\tpublic static void helloLog(Pointer\u003cByte\u003e logThis);\r\n\r\n\t\tstatic {\r\n\t\t\tBridJ.register();\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\thelloLog(pointerToCString(\"Hello, World!\"));\r\n\t\t\ttry {\r\n\t\t\t\tNativeLibrary lib = BridJ.getNativeLibrary(\"example\");\r\n\t\t\t\tfor (Symbol s : lib.getSymbols()) {\r\n\t\t\t\t\tString p = s.getParsedRef() + \"\";\r\n\t\t\t\t\tSystem.out.println(p);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new RuntimeException(\"BridJ loading failed?\", e);\r\n\t\t\t}\r\n\t\t\tsetContentView(R.layout.activity_main);\r\n\t\t}\r\n\t}\r\n","author":{"url":"https://github.com/martinkbrown","@type":"Person","name":"martinkbrown"},"datePublished":"2016-12-12T14:07:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/575/nativelibs4java/issues/575"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f3eadb38-45cf-e87d-76a6-9a12a27a6906
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE600:259C87:17E3D56:208D5A4:697A9BA6
html-safe-nonce82f0a96c927a85f1a4fcdb7a786266f672e809b61ca799d079f0a7adea941e34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjAwOjI1OUM4NzoxN0UzRDU2OjIwOEQ1QTQ6Njk3QTlCQTYiLCJ2aXNpdG9yX2lkIjoiMTYyODMyNjg1MzY0MDYyNTA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacff348d7a8b2819a6aa580d10a5926fe65a31da53e8d61c72c2d8e971487ee0fe
hovercard-subject-tagissue:194982687
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/nativelibs4java/nativelibs4java/575/issue_layout
twitter:imagehttps://opengraph.githubassets.com/10884a3cb242e6cd6457d72c89418a48ccc4bc8478812361f6296a0f074e01f2/nativelibs4java/nativelibs4java/issues/575
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10884a3cb242e6cd6457d72c89418a48ccc4bc8478812361f6296a0f074e01f2/nativelibs4java/nativelibs4java/issues/575
og:image:altI'm trying to run the Android example found in BridJ/Examples/AndroidExample. I am able to get dependencies resolved after downloading BridJ and using maven to build it successfully. I place the ge...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemartinkbrown
hostnamegithub.com
expected-hostnamegithub.com
Nonef73c0dfa17dfe2bc934284d1387c1cedefe723d2133ede564feefd2cbeb98e55
turbo-cache-controlno-preview
go-importgithub.com/nativelibs4java/nativelibs4java git https://github.com/nativelibs4java/nativelibs4java.git
octolytics-dimension-user_id11545921
octolytics-dimension-user_loginnativelibs4java
octolytics-dimension-repository_id2194042
octolytics-dimension-repository_nwonativelibs4java/nativelibs4java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2194042
octolytics-dimension-repository_network_root_nwonativelibs4java/nativelibs4java
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
release58b9322bb0d01c6949be2239e39780fa702e604c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues/575#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnativelibs4java%2Fnativelibs4java%2Fissues%2F575
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%2Fnativelibs4java%2Fnativelibs4java%2Fissues%2F575
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=nativelibs4java%2Fnativelibs4java
Reloadhttps://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues/575
Reloadhttps://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues/575
Reloadhttps://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues/575
nativelibs4java https://patch-diff.githubusercontent.com/nativelibs4java
nativelibs4javahttps://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fnativelibs4java%2Fnativelibs4java
Fork 83 https://patch-diff.githubusercontent.com/login?return_to=%2Fnativelibs4java%2Fnativelibs4java
Star 294 https://patch-diff.githubusercontent.com/login?return_to=%2Fnativelibs4java%2Fnativelibs4java
Code https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java
Issues 19 https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues
Pull requests 3 https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/pulls
Actions https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/actions
Projects 0 https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/projects
Wiki https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/wiki
Security 0 https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/security
Insights https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/pulse
Code https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java
Issues https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues
Pull requests https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/pulls
Actions https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/actions
Projects https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/projects
Wiki https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/wiki
Security https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/security
Insights https://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/nativelibs4java/nativelibs4java/issues/575
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/nativelibs4java/nativelibs4java/issues/575
Android error: missing method body, or declare abstracthttps://patch-diff.githubusercontent.com/nativelibs4java/nativelibs4java/issues/575#top
https://github.com/martinkbrown
https://github.com/martinkbrown
martinkbrownhttps://github.com/martinkbrown
on Dec 12, 2016https://github.com/nativelibs4java/nativelibs4java/issues/575#issue-194982687
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.