Failed to apply plugin [id 'com. android. application'] And cocould not find com. android. tools. build: gradle: 2. XX. applyplugin
Android studio is really cute. You can build and run it in the last second, and an error will occur in the next second... Good, you are willful, you are awesome ..
Let's talk about the two problems we encountered today: Failed to app
After importing the maven project using eclipse with the m2eclipse plug-in installed, Pom. XML start position: missing artifact COM. the Sun: Tools: jar: 1.5.0 error is not a big problem, but this error will block the eclipse build Maven project. There are two solutions to this problem:
Method 1:
Find the eclipse. ini file in the eclipse installation directory and append the VM parameter to the-vm
Solve the Problem of cocould not find com. android. tools. build: gradle, couldnotfindntldr
Today, I pulled my colleague's latest code and always reported the following errors during compilation:
Error: cocould not find com. android. tools. build: gradle: 2.2.0.Searched in the following locations:File:/D:/software/an
Unable to find a javac compiler; com. Sun. Tools. javac. Main is not on the classpath. Perhaps java_home does not point to the JDK ()
Solution:Java_home (Java installation directory)/lib/tools. JarCopy to tomcat_home (tomcat installation directory)/common/lib and restart tomcat.
Causes and solutions:
When Tomcat is installed, the JRE path is specified. As a re
> Problem Description
In the maven web project, the Pom. xml file has the error "cocould not find artifact com. Sun: Tools: jar: 1.5.0", causing the entire project to fail to be compiled correctly.
> Cause
JRE does not include the com. Sun: Tools: jar: 1.5.0 package, but JDK does. Therefore, you can use JDK to compile
C #. NET Verification Code Intelligent Recognition learning notes --- 06 solve the java jre problem: when JTessBoxEditor. jar is opened, it cannot be found or the Main class com. sun. tools. javac. Main cannot be loaded,
Technology qq exchange group: JavaDream: 251572072Download the tutorial and communicate online: it.yunsit.cn
I found this problem online,
Problem description: My problem is that the follow
[Maven package], the error is still reported, but another error is reported:[Info] scanning for projects... [Info][Info] building struts 2 blank webapp 1.0-Snapshot [info][Info] Build failure [info][Info] total time: 0.547 s [info] finished at: Wed APR 13 13:09:48 CST 2011 [info] final memory: 2 m/4 m [info][Error] failed to execute goal on Project my_struts: cocould not resolve dependencies for project Ricki. Cheung. Struts: my_struts: War: 1.0-snapshot: cocould notFind artifact
[Maven package], the error is still reported, but another error is reported:[Info] scanning for projects... [Info][Info] building struts 2 blank webapp 1.0-Snapshot [info][Info] Build failure [info][Info] total time: 0.547 s [info] finished at: Wed APR 13 13:09:48 CST 2011 [info] final memory: 2 m/4 m [info][Error] failed to execute goal on Project my_struts: cocould not resolve dependencies for project Ricki. Cheung. Struts: my_struts: War: 1.0-snapshot: cocould notFind artifact
Error building Player: Win32Exception: ApplicationName = 'e:/adt-20140702/sdk \ tools \ zipalign.exe ', Com, bodybuilding.com1. CauseAfter updating sdk, an error is reported. Because the path is different, zipalign.exe is in a different path.2. SolutionSearch for zipalign.exe under sdk.exe. Copy it to the path specified in the error message.Newbie, new to Unity3d, wants to use Unity3d to publish android apk
Specify the reference directly in pom.
If the system environment variable java_home is not configured, you must configure it in advance. The advantage is that JDK can be directly used as long as the client is configured. You can also specify the JDK installation directory.
Replace $ {java_home} with $ {java. Home. This java. Home is a variable defined in Maven. The bad thing about this method is that if the machine is changed, the JDK location cannot be guaranteed.
Another method is to cop
After jdk1.7 is installed, the environment variables are set. java and java-version are okay, but javac cannot be used: the main class com. sun. tools. javac. main is obviously a lack of jar. Many people on the Internet say that the configuration is wrong. It's speechless. what is the answer?
Later360 offYes. The cause of this problem is 360:
Configure JDK environment variables in windows:
1. Install JDK. Y
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.