Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error #25

Open
Ko-kn3t opened this issue Jul 15, 2024 · 0 comments
Open

Build Error #25

Ko-kn3t opened this issue Jul 15, 2024 · 0 comments

Comments

@Ko-kn3t
Copy link

Ko-kn3t commented Jul 15, 2024

I got the following Build Errors, I am not sure should I skip or not. It generated a APK file (APKKiller) though, it could not be opened.

> Task :app:compileDebugJavaWithJavac
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\main\java\com\kuro\app\MainActivity.java:41: warning: [deprecation] GET_SIGNATURES in PackageManager has been deprecated
            String sig1 = md5(pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES).signatures[0].toByteArray());
                                                                           ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\main\java\com\kuro\app\MainActivity.java:41: warning: [deprecation] signatures in PackageInfo has been deprecated
            String sig1 = md5(pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES).signatures[0].toByteArray());
                                                                                           ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\main\java\com\kuro\app\MainActivity.java:54: warning: [deprecation] getInstallerPackageName(String) in PackageManager has been deprecated
            apkinstaller1.setText(apkinstaller1.getText() + pm.getInstallerPackageName(packageName));
                                                              ^
3 warnings

> Task :app:dexBuilderDebug
> Task :app:bundleDebugClassesToCompileJar
> Task :app:mergeDexDebug

> Task :app:compileDebugAndroidTestJavaWithJavac FAILED
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:5: error: package androidx.test.platform.app does not exist
import androidx.test.platform.app.InstrumentationRegistry;
                                 ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:6: error: package androidx.test.ext.junit.runners does not exist
import androidx.test.ext.junit.runners.AndroidJUnit4;
                                      ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:8: error: package org.junit does not exist
import org.junit.Test;
                ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:9: error: package org.junit.runner does not exist
import org.junit.runner.RunWith;
                       ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:11: error: package org.junit does not exist
import static org.junit.Assert.*;
                       ^
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:18: error: cannot find symbol
@RunWith(AndroidJUnit4.class)
 ^
  symbol: class RunWith
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:18: error: cannot find symbol
@RunWith(AndroidJUnit4.class)
         ^
  symbol: class AndroidJUnit4
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:20: error: cannot find symbol
    @Test
     ^
  symbol:   class Test
  location: class ExampleInstrumentedTest
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:23: error: cannot find symbol
        Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
                             ^
  symbol:   variable InstrumentationRegistry
  location: class ExampleInstrumentedTest
D:\File Integrity Check\APKKiller-master\APKKiller-master\app\src\androidTest\java\com\kuro\ExampleInstrumentedTest.java:24: error: cannot find symbol
        assertEquals("com.kuro", appContext.getPackageName());
        ^
  symbol:   method assertEquals(String,String)
  location: class ExampleInstrumentedTest
10 errors

> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugAndroidTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 22s
61 actionable tasks: 61 executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant