Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to apply changes on device: . Error is: Socket connection timed out.. #71

Open
dinhhoabk95 opened this issue Jul 25, 2019 · 1 comment

Comments

@dinhhoabk95
Copy link

I have been experiencing Error is: Unable to apply changes on device: . Error is: Socket connection timed out... .

I using nativescript-vue for my project and this is some information of project:

  • Device: Android 5.1.1

  • tns-android: 5.4

  • "nativescript-admob": "^4.0.0"

  • File: AndroidManifest.xml
    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0.0"> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" /> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="__APILEVEL__" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> <application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme"> <meta-data android:name="com.google.android.gms.ads.com.my_name.test" android:value="ca-app-pub-3940256099942544~3347511713" /> <activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/LaunchScreenTheme"> <meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" /> <meta-data android:name="com.google.firebase.ml.vision.DEPENDENCIES" android:value="ocr,barcode,face,label" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.tns.ErrorReportActivity" /> </application> </manifest>

  • File app.gradle:
    dependencies { implementation 'com.google.firebase:firebase-core:16.0.1' implementation 'com.android.support:multidex:1.0.3' } android { defaultConfig { generatedDensities = [] applicationId = "com.dinhhoabkhn.dictionary" minSdkVersion 17 multiDexEnabled true } aaptOptions { additionalParameters "--no-version-vectors" } project.ext { googlePlayServicesVersion = "17.0.0" } dexOptions { javaMaxHeapSize "4g" } }

I tried rm -rf node_modules, plaforms, hooks and run again tns run android --bundle, changed googlePlayServicesVersion to 15.0.1, 16.0.0 ... but receive error.
Any help is greatly!.

@NazimMertBilgi
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants