Good morning!
I've been stuck on this issue for months now, hopefully someone can help me.
This code on iOS works fine, but not on Android.
There are three items to be purchased:
- productMonthlySub
- productUnlockAll
- productUnlockLevel[]
The only one that works, for some reason, is the last one. The others are initialised correctly, but act like if they didn't exist.
Keystore is correct, same with the dev console stuff, or all three would fail. Checked for typos many, many times.
Pasting the full code as I'm desperate: http://pastebin.com/x8pNT10S
Any ideas?
Thanks!
Related
If this is a stupid question because I made some terrible mistake, please let me know. Anyways, I just encountered the error and after searching on internet for quite some time, the only similar error that I could find was here But my situation was different.
1). I tried to create a new project from File menu of a previous project.
2). I clicked on Basic Activity and selected mininimum supported API to be 19.
3). I was following this tutorial by Google Developers.
4). I was previously able to successfully build and run from Empty Templates, but now, even they show this same error.
Here are two screenshots: Error & Window
I have tried to restart computer. I have NOT yet tried to download and re-install Android Studio yet. I do not know of any good troubleshooting besides restarting computer; so, if someone wants to share some tips, please be kind enough to do it.
I have not edited or tried to do anything in the automatically created project. I have not editted any file, until I noticed that even #color/primaryColor could not be resolved. So, I went on to look into the res/values/color file and found out that it had no color values in it, instead there was a single line: androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-au. So, I checked further, and found out that many of the automatically generated files had several errors in them.
I am on a Windows 10 machine. Please help, if this question needs to be edited, please let me know. Thanks a lot in advance.
Personally I have no problem with Android Studio, but one of the people on my course is having a strange problem with the design view. Lines and boxes keep appearing and are causing problems and after researching profusely for the last couple of hours I've been able to find no mention of what they are or how to get rid of them anywhere on the internet.
I found one other stack overflow post about these that had been submitted a couple of months ago, however it unfortunately featured no replies. I've added the screenshot from this post just to save me getting one but it's the same problem.
Does anybody know how to get rid of these? Or what they are? Because they don't show on my Android Studio.
The screenshot
Thanks in advance.
maybe it just some bugs appeared on install?
Try to just:
1. File - > clear cache and exit
2. Reinstall studio
3. Install studio 3.0 in early access
Hope it will help)
Last week I updated the SDKs and I had some problems, so I downloaded a new version of Eclipse. But then somethings started to happen.
For example, I had some projects that I picked a double from a EditText using
Double d = Double.parseDouble(v1.getText().toString());
Now, this isn't working anymore. Every time I try to do this, there is a NumberFormatException, but I believe the problem isn't in the conversion, cause I'm doing the exactly same thing I used to do in other projects.
I can't even display datas in TextViews. I'm not sure what's going on here. I'm new to this and I don't undestand too much about Android/Eclipse/Java, but I'm sure that there isn't anything wrong in the project, because I'm doing the same thing that used to work until last week.
Actually, when I saw it wasn't working I tried to download the same version I had, but this errors continued to happen. I guess the problem is in my pc, but I would like to know if it has already happened with anyone.
If someone know what's going on, please answer this!
Thank you, guys.
I'm trying to create some ads in Admob, but on last step I always get error:
There were problems with your submission
but it didn't specify WHERE. I swear god, there are no errors on whole page, all fields are correctly filled, I see no red shapes around fields, everything match criterias written under fields, but I stil get this error - without any explanation. Has anybody same experiences? It's totally frustrating :(
Ok, it was google's fault - after 3 hours of trying I just let it go, and on the evening of same day I tried just save it again (with no changes) - and it suddently worked. I wrote to google about this mystery, but (again) without success.
However I must (again!) strongly criticize google, their admob wizard is crappy, this was not the first problem I had. Next few days I had many many problems with my ads - they approved my ad, and when I copied it (without changes) it was dissaproved. After 2-3 times save it was approved. Like random behaviour, or I don't know what is it.
Conclusion: I can't understand how such big company can have such LAME LAME LAME errors on their sites, in admob, in android sdk, in their docs, in their support teams (which mostly don't answer) etc...Google, wake up!!!
I had the same problem while using lates Google Chrome... Then I tried FireFox and everything worked fine.
Very strange ;-)
UPDATE 2
I posted an answer that fixes my original problem. See that for more information.
UPDATE
FYI for anyone wondering, in the end I found this: http://github.com/commonsguy/zxingdemo/tree/master Exactly what I needed to get it rolling was a simple demo that worked! Also, thanks to Sean for pointing me in the right direction for my googling.
I am currently trying to build a simple android app that can scan in a barcode. I have looked through multiple tutorials, tried everything to a T, and re-tried and re-tried. Nothing worked. So now I am going to ask for assistance to see where I went wrong.
To list the tutorials I have followed:
https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner
Tried this one first.
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3
http://simonmacdonald.blogspot.com/2011/12/installing-barcode-plugin-for-phonegap.html
Plus a couple others, but more or less hit the point to the same process. Some key points, when I add the LibraryProject to my project as a Library, the app will not compile until I create an AndroidManifest.xml I tried using the one found in the LibraryProject and tried creating a bare mininmal one, both would allow to compile, but the app ForceCloses.
When I load up the App and click "Scan" it ForceCloses and in the debug log of LogCat in Eclipse I get:
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.myapp/com.google.zxing.client.android.CaptureActivity}: java.lang.ClassNotFoundException:
com.google.com.zxing.client.android.CaptureActivity in loader dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk]
I have tried googling, found a few issues, but no real clear or solid answers, most just point to the tutorials above. I am not sure if the tutorials are just outdated or I am being stupid and am missing something key. Been working on this for a few days now and am at my wits end.
If you can help I would appreciate it. To avoid answers regarding if I have done X or X, here is what I have done.
When I test the application, I do briefly see it trying to load BarcodeScanner, but right after I see that it ForceCloses. I am not sure what I am missing, but for references I will post the code I currently have setup to test:
AndroidManifest.xml - http://pastebin.com/qq9q0ZU7
Plugins.xml - http://pastebin.com/dZ5eKPSU
index.html - http://pastebin.com/wvht4ken
If I need to post any other items let me know.
On Android, it is much much simpler than all this you're trying to do. Throw this out and restart from http://code.google.com/p/zxing/wiki/ScanningViaIntent
Ok, so for anyone having this problem, you have two choices. You can use the ScanningViaIntent, as Sean pointed out. It works great, if you need an example look at CommonsGuy. As for the tutorials I posted above to get this working with PhoneGap, my whole problem was, after I imported the LibraryProject I did not go back through and add the files. I am not sure if a setting in my Eclipse is bad. But I basically just right clicked on the LibraryProject, went to Import -> File Structure -> Library Project's original project path, and loaded all of it back in there.
There is probably something wrong with my Eclipse setup, but yea. I now have the BarcodeScanner plugin for PhoneGap working!