Is it possible to make android library contains readme.txt?
I am new in Gradle. I've been made android library and I will upload this into maven repository. But is it possible to add "Readme.txt" into my library? for example, When someone add my library into dependencies section in build.gradle and sync. then Gradle creates(or copy) "Readme.txt" into target project(probably $projectDir or $projectDir/app) and user can read it(Like NuGet) (Important things of this library, how to use example or something like that.) I think it is really annoying visit project web-site and read "How to use" every using single library. I want my library contains how to use text file. Thank you.
I don't think this is possible, you don't know how the calling use is referencing your project. They are likely only referencing the compiled source code and never running your gradle file. This is not a good idea, you don't know their exact folder structure, and even if you did you can not be sure that your readme.txt would have a unique name that did not conflict with their project file.s
When using a .jar file you cannot include this as resources cannot be compiled into it. But you can export your library as an *.aar file which can contain resource files. You get this by using "com.android.library" as your plugin type and can then find the aar-file in your build folder after you have built it. This can then be included in your other project e.g. as a file reference.
Can not get camera output, face detection android
android ObjectGraph in new version of Dagger2
React native: catch volume buttons press (not for volume adjusting)
Not able to populate text in autoCompleteTextView in android
why Broadcast Receiver Don't work for service application android?
Showing big view notifications with Firebase Cloud Messaging
Not able to upload an Image in Firebase Storage
Error with installing app on android device by AndroidStudio
How to make several mobile devices (both iOS and Android) communicate without using internet
OnClickListener doesn't change view in Custom BaseAdapter
Android studio palette is missing
How to parse inner JSON object using Gson in Android
Sending POST within BroadcastReceiver
In Exoplayer,How to reload and resume playback automatically?
Draw route using points slowly
cropped image and save it into mysqldatabse