我正在使用Ionic框架并尝试构建APK,使用离子型构建android命令,执行任务失败:编译compileDebugJavaWithJavac‘
以下是完整的日志:
D:\Ionic\IonicUserBase>ionic build android
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
ANDROID_HOME=C:\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_91
Subproject Path: Co
我已经用Ionic创建了一个空白项目,并安装了文件加密插件。但是在没有编写任何代码的情况下,我在尝试构建项目时得到了以下错误:
C:\Users\Zel\Desktop\a\platforms\android\src\com\disusered\Safe.java:120: error: cannot find symbol
CRYPTO = new Crypto(new SharedPrefsBackedKeyChain(CONTEXT), new SystemNativeCryptoLibrary());
^
长话短说:我的android手机一直与亚行断线。我被告知要更新安卓工作室,就这么做了。我在Intellij中打开我的项目并尝试在android上运行,我得到了一个错误:
BUILD FAILED
Total time: 48.986 secs
Error: /Users/me/Desktop/comp/Development/comp-ionic/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What w
我知道这个错误
Error:(42, 38) error: cannot find symbol class newRequestQueue
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
在线:
RequestQueue queue=new Volley.newRequestQueue(this);
我正在Android Studio中开发一个Android应用程序。不太确定哪里出了问题。几天前,我正在成功地构建。任何帮助都是最好的。
下面是错误:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac&
我在我的一个应用程序中使用了Room库,在编译我的应用程序时,它给出了以下错误:
\db\AppDatabase_Impl.java:393: error: code too large
protected void validateMigration(SupportSQLiteDatabase _db) {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
:app:compileDebugJ
我用纱线安装Notifee包,
yarn add @notifee/react-native
在我查完之后,
yarn start
yarn run android
像这样抛出一个错误,
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':notifee_react-native:compileDebugJavaWithJavac'.
我很难在中实现通知。如果有人能帮我的话我真的很感激。谢谢。
当试图将我的Android应用程序构建到APK时,生成服务器出现错误并无法生成。但是,在模拟器中,应用程序工作正常,我认为错误是由编译器创建的(它不是应用程序中的一个)。
这是错误日志:-
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no
previous execution, etc.).
file or directory '/tmp/build4365298428607247775xxx/Main/src/debug/java', not found
Compi
我刚刚更新了android studio和gradle,但现在当我尝试运行这个应用程序时,我得到了以下错误:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not open local jar classpath snapshot write cache (C:\Users\Richi\Documents\Android Studio Project\AppMaster\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\local
当我想使用cmd -> 离子电容器在android上运行我的离子型应用程序时,我会遇到以下错误:构建android可以教我如何解决以下错误,这样我就可以在android上运行我的应用程序。谢谢。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':capacitor-android:compileDebugJavaWithJavac'.
> Failed to query the value of task ':capacitor-a
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not create service of type DefaultUserHome
我一直试图在android模拟器中运行我的ionic应用程序,但在某些版本控制方面不断收到错误。下面是我在运行sudo ionic cordova emulate android时得到的错误
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/DrewGelinas/Desktop/lndFinal/platforms/android/src/org/chromium/customtabsclient/shared/Cus
public static final JsonFactory JSON_FACTORY=GsonFactory.getDefaultInstance();
这段代码没有显示任何错误,但是当使用Gradle编译时,它给出了错误:
Error:(49, 65) error: cannot find symbol method getDefaultInstance().
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler erro
能告诉我为什么我发现了这个错误吗?
Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > java.io.FileNotFoundException:
G:\andriodproject\MyApplication2\app\libs\picasoo-2.5.2.jar (The system cannot find the file specified)
在Gradle构建失败后:在android中运行时,甚至不使用/添加任何与架构相关的组件。
(不完整)逻辑猫:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gr
我在执行时得到了这个错误
react-native run-android
我尝试将tools.jar文件复制到JRE安装位置,重新安装JDK和JRE,检查环境变量的路径。什么都没用。
除以下例外情况外,它返回
info Starting JS server...
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
Starting a Gradle Daemon, 1 stopped Daemon could not be reus
我已经下载了示例压缩包,当我运行cordova build android命令时,它抛出了以下错误:
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or -
我没有改变我的颤振应用程序中的任何东西,它运行得很完美,但是当我尝试在真正的设备上运行时,我发现了这个异常失败:构建失败了。
* What went wrong:
Execution failed for task ':bluetoothadapter:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation.
BUILD FAILED in 13
在将firebase_auth从早期版本升级到^0.8.0+1之后,会为我生成错误。这是错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':firebase_auth:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get th
我已经尝试了npx react-native start run android,我得到了这个执行失败的task.and,我删除节点模块和锁文件比重新安装(Npm)相同的error.and,我删除了agora文件后,我添加npm i react-native-agora。与我尝试删除和添加npm时使用相同方法删除和添加不同依赖项(例如react-native-image-crop-picker:compileDebugJavaWithJavac )相同的compileDebugJavaWithJavac时,我得到了另一个error(react-native-agora:compileDebu
当我在颤振中添加插件时。发生此错误:
失败:生成失败,出现异常。
* What went wrong:
Execution failed for task
':permission_handler:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
我试图更改插件的版本,我也尝试运行flutter clean,但没有工作。
如果你知道这个question.Please的答案,回答这个问题。
我有这个应用程序,是完美的工作。现在,我需要添加防火墙功能,但它无法构建。控制台错误:
Launching lib\main.dart on Phone in debug mode...
Configuration 'compile' in project ':app' is deprecated. Use
'implementation' instead.
registerResGeneratingTask is deprecated, use
registerGeneratedFolders(FileCollection)
registe
Error:Not sure how to convert a Cursor to this method's return type
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
使用Room,我得到了这个错误,我想找出是哪个方法导致了这个错误。
我有多个DAO,总共大约有60个方法,这个错误是在添加了一个方法后弹出的(复制和粘贴从另一个完全工作的方法中得到,
今天,我将我的MacBook升级到macOS Big版本11.0.1。现在,当我试图为Android构建这个项目时,出现了一个问题。
Execution failed for task ':CordovaLib:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
在将studio更新到2.1.2之后,类路径更新为classpath 'com.android.tools.build:gradle:2.1.2‘。我的问题是,当我运行项目时,它会抛出下面的错误:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: D:\abc\app\libs\jsoup-1.8.2.jar (The system cannot find the path specified)
我的项目进行得很好,直到我运行了flutter clean,然后尝试在android上运行我的应用程序,在那里我得到了这个错误。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
我遵循了的Android/Linux。
我尝试使用react-native run-android在ubuntu下启动本机响应,但由于错误而失败:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not find tools.jar
我怎么才能修好它?
全部产出:
$ react-native run-android
Start
嗨,今天我把我的MacBook升级到macOS大Sur 11.0.1版。现在出现了一个问题。
* What went wrong:
Execution failed for task ':apple_sign_in:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
有人知道怎么解
我遵循下面的指南来安装Cordova和ReactJS:
这行得通!
但是,当我想在Cordova中使用firebase时,就像文档中解释的那样,在安装步骤6中解释的插件后,我得到了这些错误。
当我运行"cordova run android“时,这是我得到的输出:
Successfully built!
<universal-links> tag is not set in the config.xml. Universal Links plugin is not going
to work.
Checking Java JDK and Android SDK versi
在运行npx react-native run-android之后 我得到了这个错误 * What went wrong:
Execution failed for task ':unimodules-constants-interface:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_261 contains a valid JDK installation. 有人能解释一下这里面出了什么问题吗?