ASUS ZenPad10では、いつかアプリケーションを実行することができますが、古いものが起動します。だから私は何かを修正したと思っていますが、実際にはバグのあるバージョンをテストしています。Androidスタジオは新バージョンを更新しません
他の錠剤ではこれは起こりません。それに加えて、タブレットでアプリを起動するにはADBを無効にする必要があります。 Nexus 10では何もする必要はありません。問題を回避するために、ネクサスのように/データ/ appディレクトリに
代わりに(「myapp.apk」など)のAPKの(「myappに/」のような)すべてのディレクトリもある10
任意のアイデアリフレッシュ?
「USB経由のアプリを確認する」が原因である可能性がありますが、ASUSで無効にすることはできません。
私はそれが必要ではないと思うが、これは私のメインのGradleファイルです:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.+'
}
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven {
url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.5' //version required
}
そして、これは私のアプリのGradleファイルです:Androidのメーカー後藤ランで
apply plugin: 'com.android.application'
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
compile project(':Structure:StructureExam')
compile 'com.github.bmelnychuk:atv:1.2.+'
compile 'com.github.johnkil.print:print:1.3.1'
compile 'de.codecrafters.tableview:tableview:0.9.6'
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
signingConfigs {
release {
storeFile file("../../myfile.jks")
storePassword "mypass"
keyAlias "myalias"
keyPassword "mypass"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for com.centervue.lib_util.errors in release builds,
// but continue the build even when com.centervue.lib_util.errors are found:
abortOnError false
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}
クリーン/プロジェクトを再ビルドし、再度試してみてください。デバイスからアプリケーションをアンインストールしてから、試してください。 –
私はそれを動作させることができます。しかし、他のデバイスでは必要ないので、毎回手動でアプリケーションをクリーニング/アンインストールする必要はありません。回答ありがとう: – Filnik
インスタンスをチェックしてみましたか?その場合は、[アプリケーションの再起動]オプションもチェックします。怠惰な実行は、アプリケーションを再起動しないとapkの新しいバージョンを実行しないという問題があります。 – Shvet