###前提・実現したいこと
AndroidStudioからライブラリの追加と
利用を行いたいのですが、上手く設定できません。
追加手順は以下の実行手順に示します。
###実行手順
1.pluginを呼び出すプロジェクトをandroidstudioのImport projectから開く
2.AndroidStudioのfile/New/New Module/Import.Jar/AAR Packageを選択し、aarファイルを指定する。
3.AndroidStudioのfile/Project Structoreでライブラリを使用したいモジュールを選択し、Dependenciesを開く
4.画面左下の「+」を押下し、Module Dependencyを選択し、追加したいモジュールを追加する。
###実行結果
私が作成したプロジェクトのディレクトリの中にライブラリは表示されているのですが、以下のエラーが表示されます。
A problem occurred evaluating root project 'Android'
project with path 'ライブラリ名' could not be found in root project 'android'
また、aarを追加直後にbuildをした際はエラーが表示されなかったのですが、その際に生成されるapkファイルを確認すると追加したはずのaarファイルはそんざいしていませんでした。
1.このエラー回避策を教えていただきたいです。
2.aarファイルはapkの中に表示されなかったが、それでよいのか。
上記2つを皆様にお伺いしたいです。
よろしくお願い致します。
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.apache.cordova" > </manifest>
App側Manifest.xml
1<?xml version='1.0' encoding='utf-8'?> 2 3<manifest xmlns:tools="http://schemas.android.com/tools" 4 android:hardwareAccelerated="true" android:versionCode="10000" android:versionName="1.0.0" package="com.mse.android.wifimulticast" xmlns:android="http://schemas.android.com/apk/res/android"> 5 <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> 6 <uses-permission android:name="android.permission.INTERNET" /> 7 8 <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true" tools:replace="android:icon,android:label> 9 10 <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize"> 11 12 <intent-filter android:label="@string/launcher_name"> 13 <action android:name="android.intent.action.MAIN" /> 14 <category android:name="android.intent.category.LAUNCHER" /> 15 </intent-filter> 16 17 </activity> 18 </application> 19 20 <uses-sdk android:minSdkVersion="17" android:targetSdkVersion="23" /> 21 22</manifest> 23
strings.xml
1<?xml version='1.0' encoding='utf-8'?> 2<resources> 3 <string name="app_name">Live</string> 4 <string name="launcher_name">@string/app_name</string> 5 <string name="activity_name">@string/launcher_name</string> 6</resources> 7
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/21 07:31
2016/11/21 09:10
2016/11/22 00:25
2016/11/22 01:13 編集
2016/11/22 01:06
2016/11/22 04:07
2016/11/22 04:53
2016/11/22 06:00 編集
2016/11/22 06:36
2016/11/22 07:17
2016/11/22 09:21
2016/11/24 00:49
2016/11/24 01:07
2016/11/24 01:28
2016/11/24 01:55
2016/11/24 02:17 編集
2016/11/24 02:28
2016/11/24 02:47
2016/11/24 03:27
2016/11/24 03:48
2016/11/24 04:14
2016/11/24 05:04
2016/11/24 05:16
2016/11/24 05:22
2016/11/24 05:39
2016/11/24 06:26
2016/11/24 06:27
2016/11/24 07:01
2016/11/24 07:07