Giter Club home page Giter Club logo

Comments (4)

LaiZN avatar LaiZN commented on July 3, 2024

遇到同样的错误

from androidimagepicker.

carl1990 avatar carl1990 commented on July 3, 2024

+1

from androidimagepicker.

leleliu008 avatar leleliu008 commented on July 3, 2024

Fragment可能会在后台被回收,再回来的时候,试图去冲创建实例,所以,Fragment必须是public的外部类、或者是puclic的静态内部类,而且必须有默认的构造方法,与Activity一样,因为系统再恢复现场的时候是通过反射重新创建Fragment的实例的。

from androidimagepicker.

Jiezhi avatar Jiezhi commented on July 3, 2024

我这边把ImagePreviewFragment.SinglePreviewFragment改为public static(需要同时修改里面的变量,我都改为内部类的变量了),然后就可以正常运行了。

from androidimagepicker.

Related Issues (10)

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.