###前提・実現したいこと
ActiveAndroidを使用しているのですが
https://akira-watson.com/android/activeandroid.html
↑URLのサイトを参考にしています。
build.gradleにファイル名を記述しManifestの設定を行う際にandroid:name"com.activeandroid.app.Application"の部分にエラーが出ます。(下記の①のコードです)
既存のプロジェクトのbuild.gradleファイルを書き換える際にサイトとは異なるコードが出てくるのですがそれについても書き換えてしまっていいのでしょうか?(下記の②のコードが既存のコードです)
よろしくお願いします。
###エラー
build.gradle
Plugin with id 'com.andrid.appliation' not found.
###該当のソースコード
①--------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.owner.activeandroid"> <application android:name="com.activeandroid.app.Application" ←エラーはここです。 android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <meta-data android:name="AA_DB_NAME" android:value="testDB.db" /> <meta-data android:name="AA_DB_VERSION" android:value="1" /> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> ②--------------------------------------------------------- apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.1" defaultConfig { applicationId "com.example.owner.activeandroid" minSdkVersion 19 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.0.1' testCompile 'junit:junit:4.12' }
###試したこと
既存のプロジェクトではなくプロジェクトを新規で作成
###補足情報(言語/FW/ツール等のバージョンなど)
開発OS Windows10
Android Studio 2.2.3
Android API19
使用端末 Xperiaz1f(SO-02F)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/09 00:55
2017/02/09 01:27
2017/02/09 01:29