I would like to add the Android Bootstrap library to my project using Android Studio (I followed this tutorial).
I see Android Bootstrap and my project in project explorer, but if I try to add a bootstrap button
<!-- basic button -->
<com.beardedhen.androidbootstrap.BootstrapButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="Success"
bootstrapbutton:bb_icon_right="fa-android"
bootstrapbutton:bb_type="success"
/>
I get the following error message:
android-apt-compiler: layout/activity_main.xml:56: error: No resource identifier found for attribute 'bb_icon_right' in package 'com.carfinder'
What am I doing wrong?
UPDATED:
Make sure your project structure should look like this, your library can be inside some directory, like libraries>AndroidBootStrapLibrary no problem, in that case only you have to change path in settings.gradle and build.gradle
build.gradle (No. A) file
settings.gradle :
Do sync Project with Gradle after all
You forgot to add namespace for the custom view in library.
Replave your code for button with this
add namespace in other views too if you are using. You can also add it in to the root element of your layout file too like
I have uploaded one working test project here (Checkout form github in AS)
https://github.com/pyus-13/TesstApp.git