I want to compile these code to be android native library. I have tried many techniques and follow many online example and it doesn't work. I will provide the link to the code and explain which part I want to compile.
This the link https://github.com/zyq8709/DexHunter (I want to compile the code in folder called dalvik). If anyone knows how to compile it please help me. thank you
This code is a part of platform build. If you are lucky, you can compile libdex for device only, but you must ignore the host side. The easiest hack would be to run
ndk-build BUILD_HOST_STATIC_LIBRARY=/dev/null BUILD_HOST_EXECUTABLE=/dev/null
Final, I have found the solution to compile the above code. I downloaded whole android source by using Ubuntu 16.0.4 and then I modified the specific file which it was changed and replaced it. After I compile whole all the android source code. Finally, I could get a customized ROM which I could use it as I expected. If anyone interested how to download and compile whole the android source code you can follow this link https://source.android.com/setup/build/requirements. If you have any problem you can find the solution on google or you can post here so someone including me will respond.
Related
I'm trying to use Assimp library in UE4 for Android& IOS, right now only successful with Android armeabi-v7a, need some help if anyone already done those kind of things or have those knowledge.
I struggle a lot to compile Assimp to .a&.so, finally it compile successful, but don't know how to translate the .xml for IOS, I think it might need same call "P List" when do this part, check this image(this is for android& it works).
Here is what I met when try to build the Plugin with project, is anyone can help with those issue?
Thanks advances
Just to let you know: I have prepared a build environment for this issue. We will deliver this within the next weeks on our github-project.
The problem
Under "External Libraries" in the project view of an Android Studio project I have these libraries "stax-stax-api:1.0.1#jar" and "xpp3:xpp3:1.1.3.3#jar". They're causing me problems such that I can't build the project. I can't seem to figure out how they got there or where they're being used.
The error message I get when I build right now is:
"Error:Error: xpp3 defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]"
The error message is good except that it doesn't tell me who's using this lib in the first place.
The question
Is there an easy way to find out where they're being used in the project? Or even a way that it's easy but doesn't require looking at every file? It's a multi module project with lots of files. If I could delete them this would tell me but there's no delete option.
This could be something really simple that I'm overlooking. Any help appreciated. Happy to add more info as requested.
What I've tried
I've tried to "Analyze Dependencies" but it doesn't show me any references that I can see.
Update: I forgot to mention that I've also tried ./gradlew app:dependencies but it only tells me that my project depends on these libraries. I already know this. Is there a way to get some more specific information so I can remove the libraries?
Update 2: The accepted answer does work but I needed to redirect console output.
gradle app:dependencies
It will show you the dependencies tree of your project
At this link it is explained quite well about the command and how to use it.
Use this to redirect console output if it's clipped:
./gradlew app:dependencies > dependencies.txt
Project can be explored in "Project-tool-window" to have a look at the used external libraries which are not visible in "Android tool Window".
https://www.jetbrains.com/help/idea/project-tool-window.html
That way I solve my problem. Hope it help.
I don't know why couldn't i figure it out. I am trying to add the android_maps-utils library in the android studio.I have seen this link which was suggested by google developers blog.But i couldn't understand the way they suggested. Can anyone give me step by step instruction to use android-maps-utils as library in Android Studio?? I have been stuck for two days. Thanks in advance.
Have you already fixed the more than one package name problem? If yes, omitted the followings.
I saw that in your "dependencies" element, you have compile project(':library') and compile('com.google.maps.android:android-maps-utils:0.3.4'). Is the :library the google maps utility library? If yes, then you add google maps utility dependency twice which leads to the problem.
On that link with which suggested by google is everything how to include it. If you use Android Studio (as I saw in your tags to question):
add this line to your build.gradle
dependencies {
compile 'com.google.maps.android:android-maps-utils:0.3+'
}
and in the right nop corner you will see appears text sync now, so press it.
See attached picture.
And that's it, after in your classes you may use this library.
I am quite new to android development, and have been trying to design an app..
Can anyone tell me, how do I include github projects into my app??
https://github.com/ikimuhendis/LDrawer#download
This is the perfect example of what I am trying to do. Can anyone please guide me, by a step by step process, so as to how I can make a fully functional apk from this?
I already have a project, with a working Google Map fragment, on top of that, I am trying to include this type of action bar.
Can anyone help me?? I am a complete newbie and I would appreciate it very much..
Thanks!!
if your using Android Studio add this to you build.gradle in the dependencies tag
compile 'com.ikimuhendis:ldrawer:0.1'
compile 'com.android.support:appcompat-v7:21.0.+'
if your using eclipse down load the the source as a zip and import the library folder form the downloaded file in you current project as a android library.
if can post you code i can help you with it.
hello,i want to put my project code and Sdk ,and so on to internet,.then someone can get my project apk by using the code. i want to some advice and some clue. because many people can get my new apk,and i donot want to directly give apk to people。
Use www.github.com for Source Code and www.travis-ci.org for Continuos Integrations