PagerSlidingTabStrip
PagerSlidingTabStrip copied to clipboard
Create Maven repository
Can you please create Maven repository on GitHub or deploy library in Maven Central Repository? It will be very useful for all developers. Many thanks!
+1
+1
+1
+1
Deployed aar to Ark: https://github.com/ark/ark
repositories {
maven {
url 'https://raw.github.com/ark/ark/master/releases/'
}
}
dependencies {
compile 'com.astuetz:pagerslidingtabstrip:1.0.0'
}
@astuetz :+1: But could you also add support for plain Maven? I'm not ready to switch the the new gradle build system on all of my projects.
@astuetz if it helps at all... https://github.com/Citrrus/maven-artifacts/tree/master/releases/com/astuetz built from https://github.com/jondwillis/PagerSlidingTabStrip 1.0-SNAPSHOT with some changes to your pom.xml's.
Readme would contain something like:
<dependency>
<groupId>com.astuetz.pagerslidingtabstrip</groupId>
<artifactId>pagerslidingtabstrip</artifactId>
<version>1.0-SNAPSHOT</version>
<type>apklib</type>
</dependency>
after adding the correct repo.
Hello.
I've tried adding the library like above (compile 'com.astuetz:pagerslidingtabstrip:1.0.0', from ARK), but I get the below error, because android-support-v4.jar is included in the /libs folder of the library, instead of being compiled in build.gradle. Can you please check to see why it isn't getting the support library from the build.gradle file instead of a local jar ? I cannot currently use the library with Gradle because of this. Thanks.
Gradle: UNEXPECTED TOP-LEVEL EXCEPTION: Gradle: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;
Hello again. Any info on the above matter ? Or should I file a separate bug ?
Is this library dead or wtf is going on ? Reminds me of bugs listed on Launchpad for Ubuntu. If you'd get lucky, you'd have someone contacting you after a year or so, lol.
+1
astuetz seems to have wandered off from GitHub last spring. I wonder if he'll come back?
Worked on maven repo yesterday, will be available in the following days ;)
Awesome! :D Thanks.
Published 1.0.1 to Maven Central: http://search.maven.org/#artifactdetails%7Ccom.astuetz%7Cpagerslidingtabstrip%7C1.0.1%7Caar
Cannot resolve symbol PagerSlidingTabStrip. Does anyone else get this ?
Did you read the updated readme/changelog? The library's namespace has been updated.
I didn't even need to read that, I've noticed it from the maven dep. That's not the point anyway.. I'm trying the autocomplete in AS and it doesn't suggest any class to import from the lib, so apparently it isn't recognized.
@bogdanzurac Have you tried Tools - Android - Sync Project with Gradle Files ?
The first thing I've done.
@bogdanzurac Which version of AS are you using? I just started a new project with 0.3.7 and everything worked as expected.
I'm using Android Studio 0.3.7, with a Gradle 1.8 wrapper, and had no issues.
@astuetz Could you add apklib for Maven users as well?
Apparently, after a re-import, the classes were present. Before the re-import, in the build/exploded-bundles/ComAstuetzPagerslidingtabstrip101.aar folder, the classes.jar file was not accessible for AS as the other dependencies in my project were. If you double clicked it in the project structure window in AS, nothing happened. If you double-clicked the other dependencies classes.jar file, it would open the archive. This problem was present on AS 0.4 and 0.4.2. Strange. Anyhow, thank you for releasing this on Maven Central, really appreciate it !
Had the same problem as @bogdanzurac . After banging my head to a wall, reimporting, syncing and god not know what, only upgrade to AS 0.4.3. helped.
That Tools - Android - Sync Project with Gradle Files thing you posted saved me! Thanks for that tip!