Skip to content

Instantly share code, notes, and snippets.

10-22 23:48:43.432 8474-8474/com.wallpapersssss E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.wallpapersssss, PID: 8474
java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;)V in class Lcom/bumptech/glide/load/engine/cache/MemorySizeCalculator; or its super classes (declaration of 'com.bumptech.glide.load.engine.cache.MemorySizeCalculator' appears in /data/app/com.wallpapersssss-KW9kZRSCMjkeZPn1jGIFoA==/base.apk)
at com.cunyutech.hollyliu.reactnative.wallpaper.MyGlideModule.applyOptions(MyGlideModule.java:17)
at com.bumptech.glide.Glide.initializeGlide(Glide.java:259)
at com.bumptech.glide.Glide.initializeGlide(Glide.java:219)
at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:180)
at com.bumptech.glide.Glide.get(Glide.java:164)
at com.bumptech.glide.Glide.getRetriever(Glide.java:671)
at com.bumptech.glide.Glide.with(Glide.java:698)
import React from "react";
import { View } from "react-native";
import { TabView, TabBar } from "react-native-tab-view";
import { connect } from "react-redux";
import NewOrders from "../components/NewOrders";
import OrdersInProgress from "../components/OrdersInProgress";
import PreparedOrders from "../components/CompletedOrders";
import HocResources from "../hoc/hoc-resourcers";
class PickerOrders extends React.Component {
import {
SET_NEW_PICKER_ORDERS,
SET_ORDERS_IN_PACKING_PROCESS,
SET_ORDERS_IN_PICKING_PROCESS,
SET_ORDERS_READY_FOR_DELIVER,
SET_COMPLETED_ORDERS
} from "../constants";
const newOrdersInitialState = {
orders:[]
const initialState = {
orders: []
};
const preparedOrdersReducer = (state = initialState, action) => {
switch (action.type) {
case SET_PREPARED_ORDERS:
return {
...state,
orders: generatePreparedOrder(state.orders, action.payload)
const generatePreparedItem = (oldItems, items) => {
//Search with EAN of item
//var newItems;
for (let i = 0; i < items.length; i++) {
let j = 0;
for (j = 0; j < oldItems.length; j++) {
if (items[i].EAN == oldItems[j].EAN) {
//If you find the same EAN item, it will be replaced.
let newOrder = oldItems.filter(item=> item !== oldItems[j])
const generatePreparedItem = (oldItems, items) => {
//Search with EAN of item
//var newItems;
for (let i = 0; i < items.length; i++) {
let j = 0;
for (j = 0; j < oldItems.length; j++) {
if (items[i].EAN == oldItems[j].EAN) {
//If you find the same EAN item, it will be replaced.
let newOrder = oldItems.filter(item=> item !== oldItems[j])
const generatePreparedItem = (oldItems, items) => {
//Search with EAN of item
//var newItems;
for (let i = 0; i < items.length; i++) {
let j = 0;
for (j = 0; j < oldItems.length; j++) {
if (items[i].EAN == oldItems[j].EAN) {
//If you find the same EAN item, it will be replaced.
let newOrder = oldItems.filter(item=> item !== oldItems[j])
mport { SET_PREPARED_ORDERS } from "../constants";
const initialState = {
orders: []
};
const preparedOrdersReducer = (state = initialState, action) => {
switch (action.type) {
case SET_PREPARED_ORDERS:
return {
import React, { Component } from "react";
import { View } from "react-native";
import { connect } from "react-redux";
import { RNCamera } from "react-native-camera";
import BarcodeFinder from "../components/BarcodeFinder";
import CustomModal from "../components/Modal";
import searchItem from "../actions/searchItem";
import CompleteButton from "../components/CompleteButton";
class ScanItem extends Component {
input AlternativeItem {
weighing: Boolean
weight: String
itemId: String
EAN: String
name: String
price: Float
quantity: Float
group: String
}