2016-05-03 8 views
0

Tools -> Android -> Android Device MonitorVS 2015でクリックしましたが、私のxamarinアンドロイドプレーヤーは正常に動作します。xamarinアンドロイドプレイヤーのsqlite

enter image description here

ない物理デバイス上xamarinアンドロイドプレーヤーシミュレータ内のローカルデータベース(SQLiteの)にアクセスする方法はありますか?

更新:私は次のエラー

enter image description here

+0

exeファイルをクリックすることができ、エラーMSGがかなり明確で、それはないですか? –

+0

javaはxamarinアンドロイドプレーヤー用に32ビットがインストールされています。私はそのフォルダを削除した場合、それは64ビットのインストールに指示しますが、xamarinプレーヤーは動作しません。 – hotspring

+0

ファイルにはどのようなアクセスが必要ですか?エミュレータからコピーする必要がありますか?エミュレータには?または? – SushiHangover

答えて

1

Failed to load the JNI shared library "C:/XXXXX/jvm.dll"`.

これをADBを使用して取得しています

は混合32/64のJavaの符号は、Javaがインストールビットでおよび/または間違ったバージョンがインストールされています。 Windows上の

XamarinエラーがAndroid Device Monitorを開くためにv1.6と再試行を指しているので、だから私は、Javaのv1.7をインストールすることによって開始するV1.7の、Windowsのx86バージョン

It is essential to install the 32-bit version of the Java JDK even if you're using 64-bit Windows. It is also important that v1.7 of the Java JDK is installed (although it is fine to have 1.8 or newer installed at the same time).

が必要です。

Installing the Java SDK (JDK)

The JDK can be downloaded from any browser by visiting Oracle’s website and browsing to the section with the heading Java SE Development Kit 7u79

参考:https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/#Installing_the_Java_SDK_JDK

+0

' 'adbデバイス'、私は単一のデバイスが接続されているのを見ることができました。しかし、コマンド 'adb -d shell 'を入力するとcom.SM.Android ls /data/data/com.SM.Android/dataabases/「デバイスが見つかりません」 – hotspring

+0

@hotspring' adb connect {device:port} 'first .. 1つのデバイスしか利用できない場合、自動的に接続する必要があります。そうでない場合は、実行するコマンドのデバイスhost:portを指定する必要があります。 – SushiHangover

+0

私は試して、次のエラーが発生しました: '{10.71.34.101:55555}に接続できません。ホストとポートを解決できません。そのホストは知られていません。 ' – hotspring

0

解決方法1:

私はVisual Studioでtools->android-> android adb command promptを実行

私は、データベース

STEP1にアクセスするために以下のことを続いています。 >adb shell

step2。 >cd data/data

step3。 >ls -l|grep "com.xxxx"

step4。 >

cd "com.xxxx"は、その後、私はその後、私は、ファイルを開いて、テーブルを参照してくださいsqlite browserをダウンロードしている私のワークステーション

adb shell "run-as com.xxxx chmod 666 /data/data/com.xxxx/files" 
adb pull /data/data/com.xxxx/files/xx.sql 
adb shell "run-as com.xxxx chmod 600 /data/data/com.xxxx/files" 

にSQLファイルをコピーするために、以下の使用しました。

解決方法2:別の方法として

、あなたは以下のディレクトリに移動し、ダブル

C:\Users\XXXXX\AppData\Local\Android\ANDROI~1\tools\lib\monitor-x86_64\monitor.exe 
関連する問題