java.io.FileNotFoundException: com/google/inject/internal/util/$Finalizer.class at the start of android app

后端 未结 3 1241
遥遥无期
遥遥无期 2021-02-19 04:34

I\'m developing and android countdown app.

In the app you can add or delete as many countdowns as you want.

All the Countdowns are saved in an ArrayList. I can\'

相关标签:
3条回答
  • 2021-02-19 05:02

    This seems to be an issue with guide 3.0 no_aop. I upgraded to guice 4.0 (beta) no_aop and the issue went away.

    <dependency>
      <groupId>com.google.inject</groupId>
      <artifactId>guice</artifactId>
      <version>4.0-beta</version>
      <classifier>no_aop</classifier>
    </dependency>
    

    you'll also need to add an exclusion to the original roboguice dependency:

    <dependency>
        <groupId>org.roboguice</groupId>
        <artifactId>roboguice</artifactId>
        <version>2.0</version>
        <scope>compile</scope>
        <exclusions>
            <exclusion>
                <groupId>com.google.inject</groupId>
                <artifactId>guice</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    
    0 讨论(0)
  • 2021-02-19 05:06

    In android studio, I changed build.gradle dependencies.

    dependencies {
        ...
        compile 'com.google.inject:guice:4.0-beta:no_aop'
        compile 'org.roboguice:roboguice:2.0'
    }
    
    0 讨论(0)
  • 2021-02-19 05:06

    According to this issue, the problem is a superficial one. It offers several circularly referenced rabbit holes to explain it, I gave up after the first few. The gist of it is that it can't be garbage collected properly and that if you are "doing funky classloader stuff" you may run into problems.

    For me, upgrading to guice 4.0-beta introduced an error regarding com.google.inject.utils.$ImmutableList, which is more problematic than the (apparently) superficial Finalizer issue.

    0 讨论(0)
提交回复
热议问题