defold / extension-admob

Defold native extension which provides access to AdMob functionality on Android and iOS
https://www.defold.com/extension-admob/
MIT License
37 stars 12 forks source link

Can't build a project with the extension #1

Closed flure closed 7 years ago

flure commented 7 years ago

Every time I try building my project with extension-admob, I get this error message : Build failed: Resource 'dirtylarry/button.gui' is not created

With that stacktrace :

com.dynamo.bob.CompileExceptionError: Resource 'dirtylarry/button.gui' is not created
    at com.dynamo.bob.Project.build(Project.java:343)
    at com.dynamo.cr.editor.builders.ContentBuilder.buildLocal(ContentBuilder.java:135)
    at com.dynamo.cr.editor.builders.ContentBuilder.build(ContentBuilder.java:81)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
    at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
    at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
    at org.eclipse.core.internal.resources.Project.build(Project.java:124)
    at com.dynamo.cr.editor.handlers.LaunchHandler$1.run(LaunchHandler.java:153)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.IllegalArgumentException: Resource 'dirtylarry/button.gui' is not created
    at com.dynamo.bob.fs.DefaultFileSystem.calcSha1(DefaultFileSystem.java:46)
    at com.dynamo.bob.fs.DefaultFileSystem.sha1(DefaultFileSystem.java:67)
    at com.dynamo.bob.fs.DefaultResource.sha1(DefaultResource.java:75)
    at com.dynamo.bob.Task.calculateSignature(Task.java:120)
    at com.dynamo.bob.Project.runTasks(Project.java:844)
    at com.dynamo.bob.Project.doBuild(Project.java:728)
    at com.dynamo.bob.Project.build(Project.java:335)
    ... 13 more
mathiaswking commented 7 years ago

Hi @flure! If you try the menu option "Project -> Fetch Libraries", does that help? You should see a "dirtylarry" folder to the left in the editor's project view.

flure commented 7 years ago

I just tried it, it doesn't solve the problem. Maybe it is because I'm trying to run it directly on my Android device, through dmengine ?

mathiaswking commented 7 years ago

But you see the "dirtylarry" folder to your left in the editor? And, after that, you choose "Project -> Bundle -> Android application..." ?

"Maybe it is because I'm trying to run it directly on my Android device, through dmengine ?" Well, your error log is from the build (what platform did you build for?), so that's before running the dmengine.

flure commented 7 years ago

My bad. It seems I've pasted some example code without checking if I had all the resources. Sorry for wasting your time... :(