Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Unable to add App Engine Module - Task 'appengineDownloadSdk' not found in root project #54

Open
PrashamTrivedi opened this issue Aug 17, 2015 · 5 comments

Comments

@PrashamTrivedi
Copy link

In latest android studio buid (141.2168647) On Windows 7. I can not add new appengine module.

I am trying to add GCM endpoint module (also tried with endpoint module). The wizard on android studio completes successfully and directory created, but on building the project I am getting this error

Unable to add App Engine Module - Task 'appengineDownloadSdk' not found in root project .

And build stops, the directory is empty. Do I need to do anything else??

@loosebazooka
Copy link
Contributor

That should work as is.

Can you try to do a "Sync Project with Gradle Files" and see if the project appears fully formed?

@PrashamTrivedi
Copy link
Author

There are two gradle tasks running at the time. This is the issue I receive once I finish the wizard. I have also tried "Sync Project With Gradle Files", which also did not work.

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'appengineDownloadSdk' not found in root project 'AppEngineTest'.
  • Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. >Run with --info or --debug option to get more log output.

From IDE logs it seems there are some template files which are missing, there are two stacktraces Caused by: java.io.FileNotFoundException for AndroidManifest.xml.ftl and build.gradle.ftl.

Is there any template files or directory which is either missing or may be overriden?

I have some templates made in Studio 1.3. And For 1.4 I have accidently did a fresh installation, and then copied some directories (templates and pluggins) from 1.3 to 1.4 manually. I suspect this can be a case, but I also doubt some templates are missing,

@loosebazooka
Copy link
Contributor

Yeah, I don't know if that's the best idea.

Our plugin's template lives in

android-studio/plugins/google-cloud-tools/lib/templates
android-studio/plugins/google-cloud-tools/lib/clientTemplates

the files you're looking for should have been in clientTemplates

@PrashamTrivedi
Copy link
Author

The files are indeed in the location you mentioned.

Looks like this issue related to Issue 183068. Because when I dig up the log further I can see these lines

2015-08-20 09:35:27,440 [ 308097] INFO - gine.wizard.CloudTemplateUtils - Populating built-in App Engine templates...
2015-08-20 09:35:34,283 [ 314940] ERROR - plication.impl.ApplicationImpl - platform-tools doesn't match platform-tools-preview
java.lang.AssertionError: platform-tools doesn't match platform-tools-preview
at com.android.tools.idea.sdk.remote.UpdatablePkgInfo.checkInstallId(UpdatablePkgInfo.java:95)
at com.android.tools.idea.sdk.remote.UpdatablePkgInfo.addRemote(UpdatablePkgInfo.java:68)
at com.android.tools.idea.sdk.SdkPackages.computeUpdates(SdkPackages.java:131)
at com.android.tools.idea.sdk.SdkPackages.setRemotePkgInfos(SdkPackages.java:115)
at com.android.tools.idea.sdk.SdkState$LoadTask.run(SdkState.java:352)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)

I have to check with updated tools. May be this issue can be resolved after that.

@ngamolsky
Copy link

I too am having this issue!

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

No branches or pull requests

3 participants