Skip to content

Error: java.lang.ClassNotFoundException: androidx.appcompat.app.AppCompatActivityThread #10325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
jackcx opened this issue Jun 23, 2023 · 0 comments · Fixed by #10326
Closed
3 tasks done
Labels

Comments

@jackcx
Copy link

jackcx commented Jun 23, 2023

Issue Description

got error message when start application in Android emulator:

StackTrace: 
getNativeApplication(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:7068:43)
	at getApplication(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:47600:85)
	at getResources(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:47606:28)
	at getDisplayDensity(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:48726:75)
	at toDevicePixels(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:48732:24)
	at ./node_modules/mdk-sap/ToastMessage/Toaster.android.ts(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:162147:85)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at ./node_modules/mdk-sap/index.js(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:128723:80)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at ./node_modules/mdk-core/context/ClientAPI.js(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:83693:65)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at ./node_modules/mdk-core/context/Context.js(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/vendor.js:86051:68)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at (file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:474:76)
	at __webpack_require__.m.<computed>(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:2616:31)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at ./app/Application.ts(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/bundle.js:2206:82)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at ./app/app.ts(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/bundle.js:1314:70)
	at __webpack_require__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:23:42)
	at __webpack_exec__(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/bundle.js:5128:39)
	at (file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/bundle.js:5129:487)
	at __webpack_require__.X(file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/runtime.js:1324:21)
	at (file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/bundle.js:5129:47)
	at (file:///data/data/com.sap.mobile.platform.SnowblindClient/files/app/bundle.js:5134:3)
	at require(:1:266)


Error: java.lang.ClassNotFoundException: androidx.appcompat.app.AppCompatActivityThread
	at com.tns.Runtime.runModule(Native Method)
	at com.tns.Runtime.runModule(Runtime.java:689)
	at com.tns.Runtime.run(Runtime.java:681)
	at sap.mdkclient.MDKAndroidApplication.onCreate(MDKAndroidApplication.java:34)
	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6759)
	... 9 more

search internet, cannot find class: androidx.appcompat.app.AppCompatActivityThread, if I change it back to android.app.ActivityThread, it works

https://github.com/NativeScript/NativeScript/blob/main/packages/core/application/application.android.ts#L326

Reproduction

No response

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

@jackcx jackcx added the bug-pending-triage Reported bug, pending triage to confirm. label Jun 23, 2023
@rigor789 rigor789 added bug and removed bug-pending-triage Reported bug, pending triage to confirm. labels Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants