Open alashow opened 7 years ago
I've also noticed that ever since I installed Oreo my menu items are pink in at least 2 of my apps that I have installed. ???
You can use this build to fix it:
compile 'com.github.alashow:SublimeNavigationView:0.0.1'
change compileSdkVersion to
compileSdkVersion 25 and the below dependencies(if exist) to below mentioned versions
compile 'com.android.support:design:25.3.0'
compile 'com.android.support:support-v4:25.3.0'
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:cardview-v7:25.3.0'
compile 'com.android.support:recyclerview-v7:25.3.0'
compile 'com.android.support:palette-v7:25.3.0'
@alashow Nice work on the fix. Compiling to your version of the project breaks Instant Run on Android Studio (at least for version 3.0), however. I would make an issue for it but yours doesn't have issues enabled. I'll grab the error message when I get a chance.
Update
Here's the error message:
Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> Unexpected inputs: ImmutableJarInput{name=com.appeaser.sublimenavigationviewlibrary:sublimenavigationviewlibrary:0.0.1, file=/<project path>/app/build/intermediates/transforms/desugar/debug/40.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}
Second Update
Interestingly, by following the path in the error message, I was able to find a fix. The #.jar
files in that folder went from 1.jar ... 39.jar, 41.jar
, and renaming 41.jar
to 40.jar
allowed the project to launch with Instant Run enabled. Then it immediately removed 40.jar
and put 41.jar
back, but it continues to launch fine with Instant Run.
I was interested in what was happening, so I tried switching back to compiling with 'com.appeaser.sublimenavigationviewlibrary:sublimenavigationviewlibrary:0.0.1'
and Instant Run broke again - it was looking for 41.jar
now, but instead there was 42.jar
. I immediately switched back to compiling with 'com.github.alashow:SublimeNavigationView:0.0.1'
and Instant Run worked again (it found 42.jar
), but now it's 43.jar
instead of 42.jar
. Every switch increments the number of the .jar
(but only that one, the rest still end at 39.jar
), and for some reason sometimes it breaks the reference that Instant Run keeps.
So ultimately it may be an issue with Android Studio/its Instant Run feature involving switching between two versions of the same repository, but I'm not really sure. It doesn't look like it's an issue directly caused by one version of this repo or the other. It could also have something to do with switching between compiling the repo via jitpack and compiling directly from maven.
At this point it's just something to keep an eye on if you switch to the forked version.
@vNocturnus it was working fine on my end. You should try clearing project or/and removing all build folders.
@Rushi96 : your solution is working for me (Y). can you pl explain briefly what is the actual logic behind this!
Hey.
I noticed that my app navigation menu have weird pinkish text color on menu items. I installed SublimeNavigationView app from Play Store to check if the issue with the library.
Screenshot
Update
Here is a warning log: