InvoiceMate icon indicating copy to clipboard operation
InvoiceMate copied to clipboard

Can't Build the project on Android Studio

Open burnerlee opened this issue 5 years ago • 16 comments

It gives me a build error, nor i could debug on my phone.

java.lang.ClassNotFoundException: com.google.wireless.android.sdk.stats.IntellijIndexingStats$Index
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
	at com.intellij.util.indexing.counters.IndexCounters.<clinit>(IndexCounters.java:34)
	at com.intellij.util.indexing.impl.MapReduceIndex.<init>(MapReduceIndex.java:92)
	at com.intellij.util.indexing.impl.MapReduceIndex.<init>(MapReduceIndex.java:108)
	at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex$CompilerMapReduceIndex.<init>(CompilerReferenceIndex.java:274)
	at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex.<init>(CompilerReferenceIndex.java:110)
	at org.jetbrains.jps.backwardRefs.JavaCompilerBackwardReferenceIndex.<init>(JavaCompilerBackwardReferenceIndex.java:13)
	at org.jetbrains.jps.backwardRefs.JavaBackwardReferenceIndexWriter.initialize(JavaBackwardReferenceIndexWriter.java:80)
	at org.jetbrains.jps.incremental.java.JavaBuilder.buildStarted(JavaBuilder.java:152)
	at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:361)
	at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178)
	at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:140)
	at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:297)
	at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:130)
	at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:232)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)```

burnerlee avatar Aug 04 '20 13:08 burnerlee

Hey @burnerlee this is a flutter app. I guess you are trying to build it using Java/Kotlin?

techno-disaster avatar Aug 04 '20 13:08 techno-disaster

umm. not exactly i am new to android and i am using android studio api 30 i guess... can you help me in setting it up?

burnerlee avatar Aug 04 '20 13:08 burnerlee

thank you for the prompt reply btw :smile:

burnerlee avatar Aug 04 '20 13:08 burnerlee

umm. not exactly i am new to android and i am using android studio api 30 i guess... can you help me in setting it up?

I would suggest you install the Flutter sdk from flutter.dev first

techno-disaster avatar Aug 04 '20 15:08 techno-disaster

Cool, your project yours after a few changes.... but the license key is expired... i got a new key from scanbot site..... and changed it with the existing license key..... but there is an error of initialising the License Key.

burnerlee avatar Aug 04 '20 18:08 burnerlee

@Techno-Disaster

burnerlee avatar Aug 04 '20 18:08 burnerlee

what error? logs please

techno-disaster avatar Aug 04 '20 19:08 techno-disaster

Okay i worked them on a bit(had to call initConfigs at a place).... but can you get me a license key or renew in your repo... whenever it try to get new keys from scanbot sdk (for pkg name:com.example.invoicescan).... it gives me an error:

[        ] E/SDK     (23929): java.lang.RuntimeException: ScanbotSDK: ERROR - ScanbotSDK license doesn't match to the application bundle ID/package name.
[        ] I/flutter (23929): PlatformException(RuntimeException, ScanbotSDK: ERROR - ScanbotSDK license doesn't match to the application bundle ID/package name., null)
[        ] I/flutter (23929): PlatformException(RuntimeException, ScanbotSDK: ERROR - ScanbotSDK license doesn't match to the application bundle ID/package name., null)

burnerlee avatar Aug 04 '20 20:08 burnerlee

i have also tried using pkg names as: com.example.InvoiceScan and com.example.scanbot_sdk_example_flutter but the same error. @Techno-Disaster

burnerlee avatar Aug 04 '20 20:08 burnerlee

@burnerlee use will be able to find this id in android>app>src>main>Android Manifest

techno-disaster avatar Aug 05 '20 00:08 techno-disaster

Are you talking about com.example.scanbot_sdk_example_flutter? Please mention the id of project here in the comments. I have tried with everything i found.. or please provide with a new license key.... I really spent a lot of hours trying to fix this. @Techno-Disaster

burnerlee avatar Aug 05 '20 09:08 burnerlee

yep, that the id, feel free to ping me if you are still stuck

techno-disaster avatar Aug 05 '20 10:08 techno-disaster

Yes @Techno-Disaster this doesn't work gives me the same error that package name doesn't match with the license key

burnerlee avatar Aug 05 '20 11:08 burnerlee

Can you please generate a license key for the same?

burnerlee avatar Aug 05 '20 11:08 burnerlee

Ok will do soon. Occupied atm

techno-disaster avatar Aug 05 '20 18:08 techno-disaster

@Techno-Disaster please update the license keys.. I need to refer to your project for some project I am building and I need to submit it shortly

burnerlee avatar Aug 08 '20 07:08 burnerlee