我对Android不是很熟悉,但我朋友的一位朋友说他在我的电脑上为我的网站制作了一个应用程序。所以他发给我源文件,我试图重建应用程序,但它不起作用。我甚至试图在我的计算机上创建一个新项目,并复制/粘贴每个页面的代码。然后只需更改项目名称,但问题与下面的问题相同,我无法再次联系他,因为他只是为我服务。所以我希望这里有人可以帮我解决这个问题,因为我真的厌倦了解决这个问题。
错误信息是:
Temperature
use MathsLib::Conversions::Temperature::*;
Maven package paths must start with m2repository
com.intellij.openapi.diagnostic.Logger$EmptyThrowable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:117)
at com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$CustomLogger.logError(InstallSelectedPackagesStep.java:403)
at com.android.sdklib.repositoryv2.MavenInstaller.install(MavenInstaller.java:102)
at com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$InstallTask.run(InstallSelectedPackagesStep.java:242)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
答案 0 :(得分:5)
ConstraintLayout
1.0.0-alpha2仅与Android Studio 2.2 Preview 2捆绑在一起。因此您必须安装http://tools.android.com/download/studio/canary/latest预览
答案 1 :(得分:4)
将1.0.0-alpha2更改为alpha1,它应该可以正常工作。我认为alpha2仅适用于Android Studio预览版2,之后会更改为alpha1。
答案 2 :(得分:0)