Git Product home page Git Product logo

Comments (8)

musicode avatar musicode commented on June 16, 2024 1

image
@BANG88 how to resolve it, it make me painful

from photo-viewer.

krvajal avatar krvajal commented on June 16, 2024 1

@musicode if you look a this android:name="com.merryjs.PhotoViewer.PhotoViewer.MerryPhotoViewActivity
you will see that the package name is incorrect as it has PhotoViewer.PhotoViewer twice and it should appear only once.

Update

After some try and error, I figured out what the problem is.
If you update the android manifest to look like this


<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.merryjs.PhotoViewer">
  <application>
    <activity android:name=".PhotoViewer.MerryPhotoViewActivity" android:theme="@style/Theme.Transparent"/>
  </application>

</manifest>

it should compile properly. Notice that the activity tag is wrapped inside the application tag. In previous versions, it will just emit a warning and ignore it but in most recent ones, it throws an error like the one @musicode is facing.

from photo-viewer.

musicode avatar musicode commented on June 16, 2024

@BANG88

from photo-viewer.

krvajal avatar krvajal commented on June 16, 2024

For some reason the activity tag is been placed outside the application tag in the manifiest, which seems really weired to me

from photo-viewer.

BANG88 avatar BANG88 commented on June 16, 2024

@krvajal 👍

@musicode Are you upgrade your gradle tools?

from photo-viewer.

musicode avatar musicode commented on June 16, 2024

yes, my gradle is 3.0.1

from photo-viewer.

BANG88 avatar BANG88 commented on June 16, 2024

@musicode Does this #44 (comment) can help you ? I don't recommend upgrade gradle since React Native still use a lower version.

from photo-viewer.

musicode avatar musicode commented on June 16, 2024

I have try a js component, because I want to custom the photo view with some buttons.

I don't want to spend time on compile error, i dont know what happened.

thank you.

from photo-viewer.

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.