Skip to content

no static field with name='EXTRA_MIME_TYPES' #295

@mbengchan

Description

@mbengchan

Hey,

When I run my project with:

tns run android --build

I get the following error.

[Error: java.lang.NoSuchFieldError: no static field with name='EXTRA_MIME_TYPES' signature='Ljava/lang/String;' in class Landroid/content/Intent; JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:1122) JS: com.tns.Runtime.callJSMethod(Runtime.java:1109) JS: com.tns.Runtime.callJSMethod(Runtime.java:1089) JS: com.tns.Runtime.callJSMethod(Runtime.java:1081) JS: com.tns.gen.java.lang.Object_vendor_82084_26_ClickListenerImpl.onClick(Object_vendor_82084_26_ClickListenerImpl.java:18) JS: android.view.View.performClick(View.java:4452) JS: android.widget.Button.performClick(Button.java:148) JS: android.view.View$PerformClick.run(View.java:18428) JS: android.os.Handler.handleCallback(Handler.java:725) JS: android.os.Handler.dispatchMessage(Handler.java:92) JS: android.os.Looper.loop(Looper.java:176) JS: android.app.ActivityThread.main(ActivityThread.java:5365) JS: java.lang.reflect.Method.invokeNativ...

Here is my package.json

{ "name": "zokdak-master", "version": "1.0.0", "description": "zokdak", "author": "zokdak <zokdak@zokdak.com>", "license": "MIT", "nativescript": { "id": "com.zokdak.master", "tns-ios": { "version": "6.0.1" }, "tns-android": { "version": "6.0.1" } }, "dependencies": { "@vue/devtools": "^5.0.6", "axios": "^0.19.0", "moment": "^2.24.0", "nativescript-feedback": "^1.3.10", "nativescript-fonticon": "^2.0.0", "nativescript-imagepicker": "^7.0.0", "nativescript-plugin-firebase": "^9.0.4", "nativescript-socketio": "^3.2.1", "nativescript-theme-core": "^1.0.6", "nativescript-toasty": "^1.3.0", "nativescript-vue": "^2.0.0", "nativescript-vue-devtools": "^1.2.0", "net": "^1.0.2", "numeral": "^2.0.6", "tns-core-modules": "6.0.1", "vuex": "^3.0.1" }, "devDependencies": { "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0", "babel-loader": "^8.0.2", "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", "clean-webpack-plugin": "^0.1.19", "copy-webpack-plugin": "^4.5.2", "css-loader": "^1.0.0", "lazy": "1.0.11", "nativescript-dev-webpack": "1.0.1", "nativescript-vue-template-compiler": "^2.0.0", "nativescript-worker-loader": "~0.9.0", "node-sass": "^4.9.2", "sass-loader": "^7.1.0", "terser-webpack-plugin": "^1.1.0", "vue-loader": "^15.2.6", "webpack": "^4.16.4", "webpack-bundle-analyzer": "~2.13.1", "webpack-cli": "^3.1.0" } }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions