Git Product home page Git Product logo

Comments (9)

d370urn3ur avatar d370urn3ur commented on July 21, 2024

I had the same problem I think, and I used this work-around to fix it: in the JazzyViewPager's AndroidManifest.xml (NOT your main app's manifest), add the tools xml namespace (xmlns:tools="http://schemas.android.com/tools") to the <manifest> node, then add this line to the MainActivity node: tools:node="remove". Your manifest will look like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.jfeinstein.jazzyviewpager"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="4"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <activity
            android:name="com.jfeinstein.jazzyviewpager.MainActivity"
            android:label="@string/app_name"
            tools:node="remove">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

It's very strange though, I use other library projects without having this problem.

from jazzyviewpager.

kashban avatar kashban commented on July 21, 2024

@d370urn3ur Not so strange... there should not be an application tag in a library's manifest. AllowBackup="true" also is problematic, as well as theme.

from jazzyviewpager.

d370urn3ur avatar d370urn3ur commented on July 21, 2024

True, now that I understand Android Studio better, might as well just remove entire node

from jazzyviewpager.

kashban avatar kashban commented on July 21, 2024

Yes, that would be best. Even better if it were on maven central for gradle dependency import.

from jazzyviewpager.

norrisboat avatar norrisboat commented on July 21, 2024

None of the above solutions is working for me. Any additional help???

from jazzyviewpager.

d370urn3ur avatar d370urn3ur commented on July 21, 2024

just comment out everything in the jazzyViewPager's AndroidManifest.xml. LIke this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.jfeinstein.jazzyviewpager" >

    <!--<uses-sdk-->
        <!--android:minSdkVersion="4"-->
        <!--android:targetSdkVersion="17" />-->

    <!--<application-->
        <!--android:allowBackup="true"-->
        <!--android:icon="@drawable/ic_launcher"-->
        <!--android:label="@string/app_name"-->
        <!--android:theme="@style/AppTheme" >-->
        <!--<activity-->
            <!--android:name="com.jfeinstein.jazzyviewpager.MainActivity"-->
            <!--android:label="@string/app_name"-->
            <!--tools:node="remove">-->
            <!--<intent-filter>-->
                <!--<action android:name="android.intent.action.MAIN" />-->
                <!--<category android:name="android.intent.category.LAUNCHER" />-->
            <!--</intent-filter>-->
        <!--</activity>-->
    <!--</application>-->

</manifest>

from jazzyviewpager.

norrisboat avatar norrisboat commented on July 21, 2024

Still not working

from jazzyviewpager.

d370urn3ur avatar d370urn3ur commented on July 21, 2024

do you have any other library projects that contain application tags in their manifests? only your main module's manifest should have an application tag. Otherwise, I can't really diagnose your problem without seeing your project, it is hosted on Github? My problem was caused by having an activity node in the JazzyViewPager manifest that was replacing my main activity when it was merged with the manifest merger, I am assuming because it was using the MAIN/LAUNCHER intent filter.

from jazzyviewpager.

norrisboat avatar norrisboat commented on July 21, 2024

Thanks but found another library that works pretty much like this and that's working fine

from jazzyviewpager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.