Reputation: 3
I have a question,
¿ What's the difference between compile project(':library/materialtabs') and compile 'it.neokree:MaterialTabs:0.11' ?.
Because with the first option I have the following issue:
<it.neokree.materialtabs.MaterialTabHost
android:id="@+id/tabHost_main"
android:layout_width="match_parent"
android:layout_height="45dp"
app:primaryColor="@color/white"
app:accentColor="#333333"
app:hasIcons="true"
app:iconColor="#ffffff" />
The following classes could not be instantiated: it.neokree.materialtabs.MaterialTabHost , but I use the other option the issue is solved.
Upvotes: 0
Views: 241
Reputation: 6540
compile project(':library/materialtabs')
Code is part of your project.
Means that you have an other "module" in your project. Which I think is also not spelled correctly as you can't have the "/" in the module-name.
In case the module is inside a folder can be referenced as ':library:materialtabs'
according to this structure explanation.
compile 'it.neokree:MaterialTabs:0.11'
Code is not part of your project, is just referenced from a remote resource.
Means that you are going to download (this is done by gradle internally) the specific library from android jcentral
or mavenCentral
repository servers.
Upvotes: 2