Importing eclipse project into Android Studio -
i have eclipse cordova project trying import android studio. have imported gradle project , got build.gradle files working properly.
there 2 projects (kind of). mainactivity (com.test.example) , cordovalib imported.
however, when try add module, allows me use cordovalib. result, project never runs main activity. have no idea how run main project.
my settings , project set below
for reason cannot upload images through stackoverflow
my root build.gradle file
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.1' } } allprojects { repositories { mavencentral() } } apply plugin: 'com.google.gms.google-services'
my cordovalib build.gradle file
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion '25.0.2' defaultconfig { applicationid 'example.com.test' minsdkversion 21 targetsdkversion 23 versioncode 24 versionname '1.0.2' } 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 tests tests/java, tests/res, etc... instrumenttest.setroot('tests') // move build types build-types/<type> // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ... // moves them out of them default location under src/<type>/... // conflict src/ being used main source set. // adding new build types or product flavors should accompanied // similar customization. debug.setroot('build-types/debug') release.setroot('build-types/release') } } dependencies { compile filetree(dir: 'libs', include: '*.jar') } apply plugin: 'base'
my settings.gradle root file
// generated file - not edit include ":" include ":cordovalib"
when try run project following error
error running cordovalib: default activity not found
any idea doing wrong? don't know if build.gradle files have been muddles up, or if i'm going total wrong way. had nothing bother past few days
step step import above link
and error error running cordovalib: default activity not found when occur there no default activity set in android manifest check android mainfest of library import.
hope help.
Comments
Post a Comment