techno-disaster / InvoiceMate

Scanbot sdk implementation flutter
GNU General Public License v3.0
27 stars 6 forks source link

Can't Build the project on Android Studio #1

Open burnerlee opened 4 years ago

burnerlee commented 4 years ago

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)```
techno-disaster commented 4 years ago

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

burnerlee commented 4 years ago

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 commented 4 years ago

thank you for the prompt reply btw :smile:

techno-disaster commented 4 years ago

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

burnerlee commented 4 years ago

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 commented 4 years ago

@Techno-Disaster

techno-disaster commented 4 years ago

what error? logs please

burnerlee commented 4 years ago

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 commented 4 years ago

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

techno-disaster commented 4 years ago

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

burnerlee commented 4 years ago

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

techno-disaster commented 4 years ago

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

burnerlee commented 4 years ago

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

burnerlee commented 4 years ago

Can you please generate a license key for the same?

techno-disaster commented 4 years ago

Ok will do soon. Occupied atm

burnerlee commented 4 years ago

@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