2016-10-07 12 views
0

タイトルに例外があります。私はBluetooth GATTプロファイルを含めるために実行中のアプリケーションを持っています。したがって、少なくともSDK 18が必要なので、マニフェストで変更しました。今度は、私のアプリが起動するたびにクラッシュする。例外として、「カスタムタイトルを他のタイトル機能と組み合わせることはできない」私はthisソリューションを踏襲し、ライン「カスタムタイトルを他のタイトル機能と組み合わせることはできません」と「ソースコードはバイナリコードと一致しません」

requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); 

を削除したが、今私のアプリは、単に例外をスローせずにクラッシュします。デバッグモードを使用して正確にクラッシュする場所を見つけると、トースト「ソースコードがバイナリコードと一致しません」が表示されます。 は、私も自分のstyles.xmlでこの

<style name="Theme.PageIndicatorDefaults" parent="android:Theme"> 
    <item name="vpiIconPageIndicatorStyle">@style/Widget.IconPageIndicator</item> 
    <item name="vpiTabPageIndicatorStyle">@style/Widget.TabPageIndicator</item> 
    <item name="android:windowNoTitle">false</item> 
</style> 

よう android:windowNoTitle="false"を入れてみましたが、この

10/07 09:48:19: Launching app 
$ adb push H:\Vibrotac_Android\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.sensodrive.vibrotac 
$ adb shell pm install -r "/data/local/tmp/com.sensodrive.vibrotac" 
    pkg: /data/local/tmp/com.sensodrive.vibrotac 
Success 


$ adb shell am start -n "com.sensodrive.vibrotac/com.sensodrive.vibrotac.app.activity.VibroTacStartActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER 
Client not ready yet..Waiting for process to come online 
Connected to process 7629 on device motorola-xt1032-TA92910MK8 
W/VibroTacIncidentManager: outputTextView is not set - nothing will be shown 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
W/VibroTacIncidentManager: outputTextView is not set - nothing will be shown 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
W/VibroTacIncidentManager: outputTextView is not set - nothing will be shown 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
W/VibroTacIncidentManager: outputTextView is not set - nothing will be shown 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
W/VibroTacIncidentManager: outputTextView is not set - nothing will be shown 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 
D/VibroTacBluetoothCommunicationManager: Acquiring lock for requestStatusOfRemoteDeviceAndReportIncidents 
D/VibroTacConfigurationDataManager: getConfigurationData: key=EXECUTION_RUNNING, value=null 

は何が起こるか...アプリは、どこかの間で終了ですが、私はしないでくださいスローされた例外を参照してください。

私はコメントとして前のスレッドで尋ねたでしょうが、まだコメントすることはできません。 ご協力いただきありがとうございます。

編集: Android Studioをv2.1.3にダウングレードして変更を元に戻した後は、ランダムな例外がスローされたように見えるようになりました。ターゲット、コンパイルしminSDK18私はプログラムの開発が私に(私が前に見たことがない)デバッグ\ AndroidManifestで

H:\Vibrotac_Android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml 
Error:(64) No resource identifier found for attribute 'parentActivityName' in package 'android' 
Error:Execution failed for task ':app:processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\huebner\AppData\Local\Android\Sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1 

を伝えるSDK14を使用して、知らcannot combine custom titles with other title featuresを取得... で、私は一体何任意のアイデアを持っていません私はゆっくりとthisのようなウェブサイトを作る人を理解することができます。

答えて

0

だから、多くのことを試した後、私は本当に良い答えではなく、その問題の回避策を見つけました。少なくともコードが実行中です...

v2.2の代わりにAndroid Studion v2.1.3を使用して、プロジェクトを最後に実行していたバージョンにリセットしました。 build.gradleは次のようになります。

dependencies { 
    compile fileTree(dir: 'libs', include: '*.jar') 
    compile 'com.google.code.gson:gson:2.3.1' 
} 


android { 
    compileSdkVersion 18 
    buildToolsVersion "22.0.1" 

    defaultConfig { 
     applicationId "com.sensodrive.vibrotac" 
     minSdkVersion 10 
     targetSdkVersion 10 
    } 

と私は単にGATTを使用して、すべての周りif(Build.VERSION.SDK_INT>18)を使用してGATT SDKの問題を扱いました。 同様の問題がある場合は、AndroidManifest.xmlでminSDKのバージョンを増やしたくない場合は、SDKの問題を発生した場所で処理してください。最も洗練されたソリューションではないかもしれませんが、少なくともそれは動作します...

ああ、別のもの: v2.2に更新する必要がない場合は実行しないでください。 build.gradleにassembleDebug.finalizedBy(copyAPK)という行の問題がありますが、これにはworkaroundがありますが、それを適用できませんでした。私はあなたの神経がこの問題の公式の修正があるまで古いバージョンをそのままにしておくほうがよいと思います。

関連する問題