Standalone app is failing when I am publishing android app.
The error is below
/app/turtle/workingdir/android/sdk33/android-shell-app/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
Below my app.json and package.json files:
{
"name": "rnsk",
"homepage": "https://mysite.com",
"version": "0.1.0",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"jest": {
"preset": "jest-expo"
},
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"test": "node node_modules/jest/bin/jest.js --watch",
"web": "webpack-dev-server --content-base build/ --config webpack/web.dev.config.js --port 3001 --inline --hot --colors --historyApiFallback",
"web-bundle": "webpack --config webpack/web.prod.config.js --progress --colors",
"clear-cache": "gulp clear-cache",
"debug": "open 'rndebugger://set-debugger-loc?host=localhost&port=19001'"
},
"dependencies": {
"@expo/vector-icons": "^10.0.1",
"babel": "^6.23.0",
"babel-eslint": "^8.2.3",
"babel-polyfill": "^6.26.0",
"bootstrap": "^4.3.1",
"color": "^3.1.2",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"expo": "^33.0.0",
"expo-barcode-scanner": "^6.0.0",
"expo-permissions": "^6.0.0",
"i18n-js": "^3.2.1",
"jquery": "^1.9.1",
"morgan": "^1.9.0",
"native-base": "^2.12.1",
"object-assign": "^4.1.1",
"prop-types": "^15.7.2",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
"react-native-modal-filter-picker": "^1.3.4",
"react-native-router-flux": "4.0.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.2.2",
"reactstrap": "^7.1.0",
"redux": "^4.0.1",
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0",
"superagent": "^3.8.2"
},
"devDependencies": {
"babel-preset-expo": "^5.1.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"gh-pages": "^2.0.1",
"jest-expo": "^33.0.0",
"node-sass": "^4.11.0",
"react-scripts": "2.1.8"
}
}
{
"expo": {
"name": "My App Dev,
"slug": my-app-dev",
"sdkVersion": "33.0.0",
"privacy": "unlisted",
"icon": "./src/images/app-icon.png",
"description": "Description",
"version": "0.9.7",
"orientation": "portrait",
"splash": {
"image": "./src/images/logo_splash.png",
"resizeMode": "contain",
"backgroundColor": "#00b900"
},
"assetBundlePatterns": [
"assets/*"
],
"ios": {
"buildNumber": "0.9.7",
"supportsTablet": true,
"bundleIdentifier": "com.mysite.com"
},
"android": {
"versionCode": 7,
"icon": "./src/images/app-icon.png",
"adaptiveIcon":{
"backgroundColor":"#00b900"
},
"package": "com.mysite.com",
"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"CAMERA",
"MANAGE_DOCUMENTS",
"READ_CONTACTS",
"READ_CALENDAR",
"WRITE_CALENDAR",
"READ_EXTERNAL_STORAGE",
"READ_PHONE_STATE",
"RECORD_AUDIO",
"USE_FINGERPRINT",
"VIBRATE",
"WAKE_LOCK",
"WRITE_EXTERNAL_STORAGE",
"com.anddoes.launcher.permission.UPDATE_COUNT",
"com.android.launcher.permission.INSTALL_SHORTCUT",
"com.google.android.c2dm.permission.RECEIVE",
"com.google.android.gms.permission.ACTIVITY_RECOGNITION",
"com.google.android.providers.gsf.permission.READ_GSERVICES",
"com.htc.launcher.permission.READ_SETTINGS",
"com.htc.launcher.permission.UPDATE_SHORTCUT",
"com.majeur.launcher.permission.UPDATE_BADGE",
"com.sec.android.provider.badge.permission.READ",
"com.sec.android.provider.badge.permission.WRITE",
"com.sonyericsson.home.permission.BROADCAST_BADGE"
],
},
"androidStatusBar": {
/*
Configure the statusbar icons to have light or dark color.
Valid values: "light-content", "dark-content".
*/
"barStyle": "light-content",
"backgroundColor": "#000000"
},
}
}
I have checked for other solutions such as including “assetBundlePatterns” but none of them did work for me.
The duplicate issue
It started happening after I delete my node files and install again “npm install”. Any suggestions or directions are appreciated.