AndroidStudioで作成したアプリにnendの広告を入れようと、nendSDK Android 設定ガイド(https://github.com/fan-ADN/nendSDK-Android/wiki/nendSDK-Android-%E8%A8%AD%E5%AE%9A%E3%82%AC%E3%82%A4%E3%83%89)の通りに作業をしたのですが、下記のエラーが出てしまいます
Error:(18) A problem occurred evaluating root project 'MyApplication'.
Could not find method compile() for arguments [net.nend.android:nend-sdk:2.6.1] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@7d7adb4.
や
Error:(18, 0) Gradle DSL method not found: 'compile()'
Possible causes:<ul><li>The project 'My Application' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
です
関係有るか分かりませんが、xmlにもエラーが出ています
Rendering Problems The following classes could not be found:
- net.nend.android.NendAdIconLayout (Fix Build Path, Create Class)
Tip: Try to build the project.
検索をしたりや翻訳にかけたりしたのですが、正直何がなんだか分かりません。
何が間違っていて、どこを直せば、エラーは消え広告を表示する事が出来ますか?
どうかご教示お願いします。
あなたの回答
tips
プレビュー