Fatal error initializing plugin com.android.tools.ndk solutions - android

I tried to create a new project in my android studio on my linux and it keeps giving me this error "Fatal error initializing plugin com.android.tools.ndk" please I need help
I restarted my pc
Fatal error initializing plugin com.android.tools.ndk

Ahhh this can be niggly sometimes!
Trying checking for updates, sometimes that can fix the problem.
It will be under file... Check for updates.. or something similar - i'm unfamiliar with the Linux layout.

Related

How to file a bug for the AOSP?

this isn't directly a question about android development, but about how to file a bug report if you found a bug within the android OS.
I have seen this documentation link: https://source.android.com/docs/setup/contribute/report-bugs
which finally leads to this bug-tracking system:
https://issuetracker.google.com/issues?q=status:open%20componentid:190923
I created a bug report there, however, after creating it I get an error message saying:
New issue created: 259508180 (view access not granted)
Am I missing something? Thanks in advance for the help!

NativeScript Build - Error executing Static Binding Generator: Class not found android.support.v4.view.ViewPager.OnPageChangeListener

I'm new to NativeScript and took over a project recently upgraded from NativeScript 4 to 6. Here is my environment detials:
Windows 10
Node v16.6.1
NativeScript 8.0.2
Android Studio 11 (with al
the recommended updates to date)
VS Code 1.58.2
I can create a new Native script project with "tns create" and build/run it in the simulator just fine. However, when I try to run the project the build throws the following error:
java.lang.RuntimeException: Class not found android.support.v4.view.ViewPager.OnPageChangeListener
at org.nativescript.staticbindinggenerator.Generator.getClass(Generator.java:551)
at org.nativescript.staticbindinggenerator.Generator.getInterfacesFromCache(Generator.java:534)
at org.nativescript.staticbindinggenerator.Generator.writeBinding(Generator.java:283)
at org.nativescript.staticbindinggenerator.Generator.generateBinding(Generator.java:171)
at org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:234)
at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:121)
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:55)
Here is the run command I'm using: "tns run android --emulator"
I have tried tons of things and searches but no luck resolving this issue.
So I had an idea and searched with a different search engine than I normally use. I did find some ideas which helped me resolved the issue.
I had previously searched in VSCode for variations on "android.support.v4.view.ViewPager.OnPageChangeListener", but only found the log file with the error. Then I learned you have to change the filter options of the find in file search otherwise the files you are looking for can be excluded from the search results. I also used Baregrep to confirm I was getting everything.
I fixed the issue by replacing all occurrences of:
android.support.v4.view.ViewPager with androidx.viewpager.widget.ViewPager
Also you may need to install widgets:npm i tns-core-modules-widgets
Since the files where I made the changes were all non-project files (many of them in the node_modules directory) there is probably something else that involves updating Node or NativeScript that may solve this as well.
If someone else figures that out, I'll be watching this thread for updates, and thanks in advance!
Fissh

How to get the full information of runtime error instead of <Timeout exceeded getting exception details>?

So I'm trying out xamarin in VS2017, but found this undhandled error:
Unhandled Exception:
Java.Lang.SecurityException: <Timeout exceeded getting exception details>
This is very clueless. How can I get the full information of the runtime error like in Android Studio?
I had the same problem while calling some native API,
solved it by
Put a try catch around the block of got which is throwing the error.
Put a breakpoint in the catch block, you can get actual details of the exception.
After getting assistance from Microsoft, I finally found the solution.
TL;DR
Use VS Android device log and filter with "mono-rt" or "Error"
Complete Answer:
There are 2 solution:
1. Using Android Studio logcat:
Open the Android Studio logcat (View > Tool Windows > Logcat). From the logcat window, choose the device, choose the Xamarin.Android deployed application, and choose logcat for Error
Android logcat will display the runtime error:
2. Using Visual Studio Android Device Log:
Open the Visual Studio Android Device Log(Tools > Android > Device Log).
Here is the tricky bit: Unlike Android Studio, VS list all of the device log, not limited to the Xamarin.Android app deployed. So somehow we have to use the filter to get the relevant information. The problem is, what filter should we use? I used my application name and the error didn't show up. It turns out that when the error happen, the log doesn't contain any of the application name. Instead it has "mono-rt" tag with "Error" type.
So there you have it. Filter it with "mono-rt" tag or "Error" type and you will find the error information

PhoneGap 2.0 Upgrade Errors - JSCallback Error / Could not find class

I updated my Phonegap (Cordova) project from 1.9 to 2.0 and am receiving the following two new errors:
Web Console
JSCallback Error: Request failed. at file file://android_assets/www/js/cordova-2.0.0.js:3698
and
dalvikvm
Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.generatedWebResourceResponse
Is this a known problem? I have searched but can't find a solution that addresses these issues. I have tried creating a new blank project and I am getting the same errors. I have also ensured Eclipse and the SDK manager are up to date.
Any help would be much appreciated.
Thank you.
Not sure about the first question as I need to know what you are doing when that log appears.
Regarding the second question:
https://stackoverflow.com/a/12043959/41679

Lambdaj Error on Android

I am tryng to use lambdaj 2.4 with dependencies in my android application. However when I try to use following select statement:
List<MOExpectedIncidentData> list = select(listExpectedIncidentData,
having(on(MOExpectedIncidentData.class).TRAVELWAY_ID,
equalTo(travelWayId)));
I get following exception:
java.lang.VerifyError: net.sf.cglib.core.ReflectUtils
Here is the stack trace:
[ch.lambdaj.proxy.ProxyUtil.createEnhancer(ProxyUtil.java:89),ch.lambdaj.proxy.ProxyUtil.createProxy(ProxyUtil.java:49),ch.lambdaj.function.argument.ArgumentsFactory.createPlaceholder(ArgumentsFactory.java:68),ch.lambdaj.function.argument.ArgumentsFactory.registerNewArgument(ArgumentsFactory.java:58),ch.lambdaj.function.argument.ArgumentsFactory.createArgument(ArgumentsFactory.java:50),ch.lambdaj.function.argument.ArgumentsFactory.createArgument(ArgumentsFactory.java:39),ch.lambdaj.Lambda.on(Lambda.java:63),gov.mo.dot.timm.model.MODataManager.getAllIncidentCount(MODataManager.java:100),gov.mo.dot.timm.InterstateListActivity.handleDataParsed(InterstateListActivity.java:75),java.lang.reflect.Method.invokeNative(Native Method),java.lang.reflect.Method.invoke(Method.java:507),roboguice.event.eventListener.ObserverMethodListener.onEvent(ObserverMethodListener.java:32),roboguice.event.EventManager.fire(EventManager.java:130),gov.mo.dot.timm.model.MODataManager.getExpectedIncidentData(MODataManager.java:150),gov.mo.dot.timm.model.MODataManager.handleDataDownload(MODataManager.java:172),java.lang.reflect.Method.invokeNative(Native Method),java.lang.reflect.Method.invoke(Method.java:507),roboguice.event.eventListener.ObserverMethodListener.onEvent(ObserverMethodListener.java:32),roboguice.event.EventManager.fire(EventManager.java:130),gov.mo.dot.timm.tasks.DataDownloadTask.onSuccess(DataDownloadTask.java:70),gov.mo.dot.timm.tasks.DataDownloadTask.onSuccess(DataDownloadTask.java:29),roboguice.util.SafeAsyncTask$Task$2.call(SafeAsyncTask.java:210),roboguice.util.SafeAsyncTask$Task$6.run(SafeAsyncTask.java:275),android.os.Handler.handleCallback(Handler.java:587),android.os.Handler.dispatchMessage(Handler.java:92),android.os.Looper.loop(Looper.java:150),android.app.ActivityThread.main(ActivityThread.java:4263),java.lang.reflect.Method.invokeNative(Native Method),java.lang.reflect.Method.invoke(Method.java:507),com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839),com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597),dalvik.system.NativeStart.main(Native Method)]
Any idea on this will be very very helpful. I have already spent so much time to resolve this.
Thanks
Apurva

Categories

Resources