I am creating android application using Aide (mobile ide).
My project has no errors but when I run the app, during building APK it displays an error dialog with message :
'Packaging error: com.blankj.utilcode.util.ReflectUtil sSReflectException: java.lang.refle ct.InvocationTargetException
'.
This has happened when I added these two libraries in my project:
Dexter library : to handle runtime permission in android
KingsMentor library : to scan barcode or QR code
Please help me how do I fix it?
Now I know where the actual bug is.
If the same happens to you then kindly note that it is due to the 3rd party library that you are using in your project.
So the solution is to remove that library from your project and try another one , moreover try to code from scratch for that task if possible instead of using such libraries.
It happens because those libraries use another library or libraries.
Hope it helps you.
Happy coding :)
Related
My Android studio gives me error. The build error whenever I try to run any project. Please help how to solve it
It seems Gradle is in offline mode and thus can't download required resources. This page explains how to turn on offline mode, I'm pretty sure you can figure out the inverse from there.
I tried importing the sample, but I got an error saying
"Error:(1, 0) SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable."
I then tried importing the Facebook SDK module into a blank activity. I can't seem to get it working. If not the error above, it has a strange gradle error. I spent hours trying to fix it, but no luck.
Please note that I'm very new to Android and I'm not even sure how to handle the gradle things. Any advice would be helpful.
Android studio is not very fast in my opinion. Im using Eclipse which is better i think. I never did use android studio much but lets see if this works it is used in Eclipse.
Right click on your libs. Add the facebook sdk. Right click on the facebook sdk. Then build path. Im not sure if this qill work for Android atudio since its made by the same company who made IntelliJ. JetBrains.
Goodafternoon community! total beginner here. I am developing my first android app and have downloaded all what is required in running Eclipse Juno as well as files from SDK manager. But when I'm creating a new Android Application Project I encounter a couple of errors already.
It says,
Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
(^in red)
AND...
WARNING: unable to write jarlist cache file C:\Users\Nokia\thesis2\appcompat_v7\bin\jarlist.cache
(^ in black)
Can anyone help me. Thank you very much everyone! :-D more power to you guys!
You should add support v7 library in your project. If you are not installed it using SDK manager,
Android developer site will help you.
After that the AppCompat Can be found at
android-sdk/extras/android/support/v7/appcompat
You need to reference this AppCompat in your android project.
Import the library to eclipse.
Right click on your android project.
Goto Properties.
Select Android.
Click Add Library and reference the same.
Clean and Rebuild your project
I'm trying to integrate zXing into my Android app.
I've created a new project from the "android project", set it as a library and insert the core.jar.
I've also have import it the project as a library into my app and insert the core.jar too, but when I launch my Intent, I keep getting this:
RuntimeException: Unable to resume activity
I've read all the posts and tutorials, and I mean it, ALL of them, but I get no solution.
Can anyone help me please?
Kind regards and thanks for advance.
Do one thing change the library project folder to the sdk location for this you have to make one folder which is extensions and then put zxing library file in to it and then import that all library in to you project explorer and then give the reference of library again and you can also follow this below site .....
http://www.androidaz.com/development/zxing-qr-reader-direct-integration
Has anyone been able to successfully integrate Flurry with a BlackBerry mobile application? I have imported the FlurryAgent.jar into my project, yet when I go to run the application I am given the error "Module 'FlurryAgent' not found." I have tried the following:
Preverifying the .jar file
Adding the .jar file to the build path of a library project (that my main project references)
It is still not working for me after trying the above - I'm getting ready to pull my hair out, there really isn't a helpful guide to do this.
Thanks!
In your project properties, go to the Java Build Path section, and then the Order and Export Tab. Make sure the check box for the Flurry component is checked.
That solved it for me.
Flurry was working fine for me in an application I did a year ago. I just added the FlurryAgent.jar file to the build path and then called FlurryAgent.onEvent(String);
I was using NetBeans IDE with Blackberry JDE 4.5
The supplied jar is already preverified, so that should have no effect. Mugur is right that the flurry jar must be included in the build path of the application project and must be included in the built application.
We (Localytics) provide our client libraries in source code to make integration with BlackBerry much, much easier.
We compete with Flurry, but you might want to give it a try: http://wiki.localytics.com