Could I use Android Studio to develop Alljoyn?

asked 2014-08-07 08:22:50 -0700

Toby gravatar image

updated 2014-08-07 08:23:21 -0700

Hi, everyone,

Today, I exported the project of /alljoyn-14.02.00-rel/java/samples/simple/client from Eclispe and imported it to Android Studio(0.8.2). I could build the project in the Android Sutdio with jdk1.6.0_45. However, there was a problem, when I wanted to debug the client in my smart phone(Android version 4.3).

After installing the client in my phone, in the console of Android Studio there were some words, for example:

Launching application: org.alljoyn.bus.samples.simpleclient/org.alljoyn.bus.samples.simpleclient.Client. DEVICE SHELL COMMAND: am start -D -n "org.alljoyn.bus.samples.simpleclient/org.alljoyn.bus.samples.simpleclient.Client" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to the target VM, address: 'localhost:8601', transport: 'socket' Disconnected from the target VM, address: 'localhost:8601', transport: 'socket'

At the same time, in my phone the client said that "Client is waiting for the debugger to attach ".

Before asking, I try to find the solution using Google. But, I failed. The solution from Google didn't work, for example:http://stackoverflow.com/questions/21745143/android-studio-cant-connect-to-debug-devices.

But, when I established a project for testing in the Android Studio, the test project could be debugged with the Android Studio and my phone.

So that, can I use AS to develop Alljoyn?

Thanks in advance.

edit retag flag offensive close merge delete


The error information: java.lang.UnsatisfiedLinkError: Couldn't load alljoyn_java from loader dalvik.system.PathClassLoader The error is at System.loadLibrary("alljoyn_java");

Toby ( 2014-08-16 19:19:35 -0700 )edit

I don't think AS can be used to debug Alljoyn, at least the 0.8.2 of AS can't, because AS 0.8.2 can't support NDK. However, the alljoyn_java lib is written by C++.

Toby ( 2014-08-16 19:20:48 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-07 13:26:16 -0700

bspencer gravatar image

At this time Eclipse is the supported IDE for AllJoyn development on Android and you can use the debugger. It appears from your posting that you are able to develop using Android Studio, you just have problems debugging. My guess is that in the export there are some settings when the project was imported into Android Studio that are different from when you create a new Android Studio project.

edit flag offensive delete publish link more


Thanks for your reply. The sdk, I used to debug the client app, is copied from Eclipse, because the sdk of AS couldn't be used by AS. Perhaps, there were some problems when I imported the project into AS. I imported it, according to developer.android.com/sdk/installing/migrate.html.

Toby ( 2014-08-08 06:31:02 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-08-07 08:22:50 -0700

Seen: 853 times

Last updated: Aug 07 '14