Runtime exception when compiling project - nativescript-angular

When compiling my Nativescript project this error occurs.
Nativescript: 5.4.2
Exception in thread "main" java.lang.RuntimeException: Class not found android.support.v7.widget.Toolbar.OnMenuItemClickListener
How to solve it, any help is appreciated. Thanks in advance.

You need to migrate your application to AndroidX : Support for AndroidX in NativeScript
This tool makes the migration "painless" : AndroidX Migration tool

I updated the Nativescript version from 5.4.2 to 6.1.2 and it fixed so many problems. I hope this may help you too.

Related

CreateProcess Failed; code 193. 1% is not a valid Win32 application

I am trying to install OpenJDK 11 and IntelliJ IDEA Community Edition 2019.2. but I get the error below. I also experienced the same issue when I was installing Android Studio. Please help. How can I resolve this?
enter image description here
IntelliJ IDEA 2020.1 has a feature to automatically download and configure the JDK for you. If JDK installer doesn't work for you, it may be an option.

fatal error LNK1103: debugging information corrupt; recompile module

I am using VS 2017 with version 15.3.0. I have a project with C++ source codes that can be built successfully in VS version 15.2 but failed in 15.3 with the following error:
msxml2.lib(msxml2_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Does anyone have suggestions about this?
I have filed a bug report to Microsoft including a sample application which reproduces the bug:
https://developercommunity.visualstudio.com/content/problem/99785/mfcs140libstdafxobj-fatal-error-lnk1103-debugging.html
Hopefully this will be fixed in a subsequent 15.3.x update.
I met the same problem when my project use an external lib(CyAPI.lib).
I tried delete the Debug folder, and recompiled, but the problem still exist.
I resolved the problem by changed to CyAPI.lib to the newest version.

android studio 2.2.1 cannot resolve symbol *

I use android-studio 2.1.1 in the past, yesterday I downloaded android-studio 2.2.1, but found cannot resolve symbol error, now I use android-studio 2.1.1 and everything is ok, I have already tried :
1、File->Invalidata Caches/Restart->Invalidata and Restart
2、Build->Make Module
3、Build->Make Project
4、Build->Clean Project
5、Build->Rebuild Project
can anyone help me , thanks in advance.
I encountered the same problem as you. Google released android studio 2.2 preview 2 today - I downloaded and tried it, and it solves this problem.

Gradle complains: "TaskSelectionException: Task 'generateDebugTestSources' not found in project"

Updating Android Studio from 1.1.0 to 1.2 RC0 broke my (previously flawlessly running) project. The error message is:
TaskSelectionException: Task 'generateDebugTestSources' not found in project ':libraries:android-simple-facebook:Simple Facebook'. Some candidates are: 'generateDebugResources'.
What does that mean? And how can it be fixed?
Any advice is appreciated.
Thank you.
I got this error after I renamed the project.
Solution is: Press on the "Sync Project With Gradle Files" once.
After this the error will be gone.
I got the same error,too. It's seems like when I update gradle to 1.3, AS missing something. I tried run ./gradlew clean in project root directory, it will install all requires and finally build success.

NDK for AndroidStudio

I follow this page to study "NDK setting under androidStudio".
http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/
But I face an issue when I Config ndk with gradle.here is error message.
have anybody help me?
Error:(20, 0) Gradle DSL method not found: 'ndk()'
Possible causes:The project 'My Application' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper fileThe build file may be missing a Gradle plugin.
Apply Gradle plugin
I had this problem and solved it by following the steps in this blog:
http://ph0b.com/new-android-studio-ndk-support/
and looking at the source code of this project:
https://github.com/googlesamples/android-ndk/tree/master/hello-jni
I hope that helps.

Resources